Make WordPress Core

Ticket #41668: 41668.patch

File 41668.patch, 1.1 KB (added by ramiy, 8 years ago)
  • wp-admin/includes/template.php

     
    20542054 */
    20552055function convert_to_screen( $hook_name ) {
    20562056        if ( ! class_exists( 'WP_Screen' ) ) {
    2057                 _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' );
     2057                _doing_it_wrong(
     2058                        'convert_to_screen(), add_meta_box()',
     2059                        sprintf(
     2060                                /* translators: 1: wp-admin/includes/template.php 2: add_meta_box() 3: add_meta_boxes */
     2061                                __( '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.' ),
     2062                                '<code>wp-admin/includes/template.php</code>',
     2063                                '<code>add_meta_box()</code>',
     2064                                '<code>add_meta_boxes</code>',
     2065                        ),
     2066                        '3.3.0'
     2067                );
    20582068                return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' );
    20592069        }
    20602070