Make WordPress Core


Ignore:
Timestamp:
10/24/2017 10:34:05 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add a context for remaining "Schedule" strings.

Props Mirucon.
Fixes #42165.

File:
1 edited

Legend:

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

    r41987 r42005  
    290290    if ( $can_publish ) :
    291291        if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    292         <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
    293         <?php submit_button( __( 'Schedule' ), 'primary large', 'publish', false ); ?>
     292        <input name="original_publish" type="hidden" id="original_publish" value="<?php echo esc_attr_x( 'Schedule', 'post action/button label' ); ?>" />
     293        <?php submit_button( _x( 'Schedule', 'post action/button label' ), 'primary large', 'publish', false ); ?>
    294294<?php   else : ?>
    295295        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
Note: See TracChangeset for help on using the changeset viewer.