WordPress.org

Make WordPress Core

Changeset 38414


Ignore:
Timestamp:
08/28/2016 02:24:14 AM (4 years ago)
Author:
wonderboymusic
Message:

Admin: allow WP_Screen to be checked via autoload in convert_to_screen().

Props kraftbj.
See #36335.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r38411 r38414  
    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' );
Note: See TracChangeset for help on using the changeset viewer.