Make WordPress Core

Changeset 20757


Ignore:
Timestamp:
05/09/2012 09:13:22 PM (13 years ago)
Author:
ryan
Message:

Use correct translation function. Props kobenland, SergeyBiryukov. fixes #20646

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r20358 r20757  
    384384        if ( isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'custom-background' ) {
    385385            $form_fields = array( 'image-size' => $form_fields['image-size'] );
    386             $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>' );
     386            $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>' );
    387387            $form_fields['context'] = array( 'input' => 'hidden', 'value' => 'custom-background' );
    388388        }
  • trunk/wp-admin/custom-header.php

    r20719 r20757  
    956956            ), admin_url('themes.php')));
    957957
    958             $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>' );
     958            $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>' );
    959959            $form_fields['context'] = array( 'input' => 'hidden', 'value' => 'custom-header' );
    960960        }
Note: See TracChangeset for help on using the changeset viewer.