Ticket #36335: 36335.16.diff
File 36335.16.diff, 758 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/template.php
1989 1989 * @return WP_Screen Screen object. 1990 1990 */ 1991 1991 function convert_to_screen( $hook_name ) { 1992 if ( ! class_exists( 'WP_Screen' , false) ) {1992 if ( ! class_exists( 'WP_Screen' ) ) { 1993 1993 _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' ); 1994 1994 return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' ); 1995 1995 }