WordPress.org

Make WordPress Core

Ticket #20646: 20646.2.patch

File 20646.2.patch, 1.6 KB (added by SergeyBiryukov, 8 years ago)
  • wp-admin/custom-background.php

     
    383383        function attachment_fields_to_edit( $form_fields, $post ) {
    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                }
    389389
  • wp-admin/custom-header.php

     
    955955                                'file' => $post->ID
    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                }
    961961