Changeset 37985 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 07/06/2016 12:39:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r37972 r37985 1205 1205 1206 1206 if ( 'misc' == $page ) { 1207 _deprecated_argument( __FUNCTION__, '3.0 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );1207 _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); 1208 1208 $page = 'general'; 1209 1209 } 1210 1210 1211 1211 if ( 'privacy' == $page ) { 1212 _deprecated_argument( __FUNCTION__, '3.5 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );1212 _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); 1213 1213 $page = 'reading'; 1214 1214 } … … 1256 1256 1257 1257 if ( 'misc' == $page ) { 1258 _deprecated_argument( __FUNCTION__, '3.0 ', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );1258 _deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); 1259 1259 $page = 'general'; 1260 1260 } 1261 1261 1262 1262 if ( 'privacy' == $page ) { 1263 _deprecated_argument( __FUNCTION__, '3.5 ', __( 'The privacy options group has been removed. Use another settings group.' ) );1263 _deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) ); 1264 1264 $page = 'reading'; 1265 1265 } … … 1997 1997 function convert_to_screen( $hook_name ) { 1998 1998 if ( ! class_exists( 'WP_Screen', false ) ) { 1999 _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3 ' );1999 _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3.0' ); 2000 2000 return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' ); 2001 2001 }
Note: See TracChangeset
for help on using the changeset viewer.