Make WordPress Core


Ignore:
Timestamp:
10/18/2017 03:45:48 PM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Replace hardcoded file name in a translatable string in convert_to_screen() with a placeholder.

Props ramiy.
Fixes #41668.

File:
1 edited

Legend:

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

    r41887 r41906  
    20682068function convert_to_screen( $hook_name ) {
    20692069    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        );
    20712081        return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' );
    20722082    }
Note: See TracChangeset for help on using the changeset viewer.