Changeset 41906 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 10/18/2017 03:45:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r41887 r41906 2068 2068 function convert_to_screen( $hook_name ) { 2069 2069 if ( ! class_exists( 'WP_Screen' ) ) { 2070 _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' ); 2070 _doing_it_wrong( 2071 'convert_to_screen(), add_meta_box()', 2072 sprintf( 2073 /* translators: 1: wp-admin/includes/template.php 2: add_meta_box() 3: add_meta_boxes */ 2074 __( 'Likely direct inclusion of %1$s in order to use %2$s. This is very wrong. Hook the %2$s call into the %3$s action instead.' ), 2075 '<code>wp-admin/includes/template.php</code>', 2076 '<code>add_meta_box()</code>', 2077 '<code>add_meta_boxes</code>' 2078 ), 2079 '3.3.0' 2080 ); 2071 2081 return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' ); 2072 2082 }
Note: See TracChangeset
for help on using the changeset viewer.