Use correct translation function. Props kobenland, SergeyBiryukov. fixes #20646
git-svn-id: http://core.svn.wordpress.org/trunk@20757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
97aff78b06
commit
7e3010ef46
|
@ -383,7 +383,7 @@ if ( get_background_image() ) {
|
|||
function attachment_fields_to_edit( $form_fields, $post ) {
|
||||
if ( isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'custom-background' ) {
|
||||
$form_fields = array( 'image-size' => $form_fields['image-size'] );
|
||||
$form_fields['buttons'] = array( 'tr' => '<tr class="submit"><td></td><td><a data-attachment-id="' . $post->ID . '" class="wp-set-background">' . _( 'Set as background' ) . '</a></td></tr>' );
|
||||
$form_fields['buttons'] = array( 'tr' => '<tr class="submit"><td></td><td><a data-attachment-id="' . $post->ID . '" class="wp-set-background">' . __( 'Set as background' ) . '</a></td></tr>' );
|
||||
$form_fields['context'] = array( 'input' => 'hidden', 'value' => 'custom-background' );
|
||||
}
|
||||
|
||||
|
|
|
@ -955,7 +955,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
|||
'file' => $post->ID
|
||||
), admin_url('themes.php')));
|
||||
|
||||
$form_fields['buttons'] = array( 'tr' => '<tr class="submit"><td></td><td><a data-location="' . $href . '" class="wp-set-header">' . _( 'Set as header' ) . '</a></td></tr>' );
|
||||
$form_fields['buttons'] = array( 'tr' => '<tr class="submit"><td></td><td><a data-location="' . $href . '" class="wp-set-header">' . __( 'Set as header' ) . '</a></td></tr>' );
|
||||
$form_fields['context'] = array( 'input' => 'hidden', 'value' => 'custom-header' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue