Make WordPress Core

Ticket #36335: 36335.16.diff

File 36335.16.diff, 758 bytes (added by kraftbj, 8 years ago)

Fixes WP_Screen notice

  • src/wp-admin/includes/template.php

     
    19891989 * @return WP_Screen Screen object.
    19901990 */
    19911991function convert_to_screen( $hook_name ) {
    1992         if ( ! class_exists( 'WP_Screen', false ) ) {
     1992        if ( ! class_exists( 'WP_Screen' ) ) {
    19931993                _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' );
    19941994                return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' );
    19951995        }