[wp-trac] [WordPress Trac] #29389: Notices in General Settings
WordPress Trac
noreply at wordpress.org
Wed Aug 27 07:55:26 UTC 2014
#29389: Notices in General Settings
----------------------------+-------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-------------------
Seeing notices from Debug Bar on General Settings screen after [29630]:
{{{
Notice: Undefined offset: 5 in wp-content/plugins/debug-bar/panels/class-
debug-bar-deprecated.php on line 89
Notice: Undefined offset: 4 in wp-content/plugins/debug-bar/panels/class-
debug-bar-deprecated.php on line 92
Notice: Undefined offset: 4 in wp-content/plugins/debug-bar/panels/class-
debug-bar-deprecated.php on line 93
}}}
Caused by:
{{{
_deprecated_argument( 'define()', '4.0', sprintf( __( 'The %s constant in
your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
}}}
Although the notices come from Debug Bar and not from WordPres core,
apparently `_deprecated_argument()` should only be called inside a
function. We should probably replace it with `_doing_it_wrong()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29389>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list