Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2009-12-24 11:12:04 +00:00
parent fc38ae1d5b
commit 47a7b1b003
7 changed files with 30 additions and 8 deletions

View File

@@ -980,10 +980,13 @@ function is_active_sidebar( $index ) {
* @since 2.2.0
* @access private
*
* @param bool $update Optional, deprecated.
* @param bool $deprecated. Not used.
* @return array Upgraded list of widgets to version 3 array format when called from the admin.
*/
function wp_get_sidebars_widgets($deprecated = true) {
if ( $deprecated !== true )
_deprecated_argument(__FUNCTION__, 'deprecated', '0.0');
global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets;
// If loading from front page, consult $_wp_sidebars_widgets rather than options