Ticket #20646: 20646.2.patch
File 20646.2.patch, 1.6 KB (added by , 13 years ago) |
---|
-
wp-admin/custom-background.php
383 383 function attachment_fields_to_edit( $form_fields, $post ) { 384 384 if ( isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'custom-background' ) { 385 385 $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>' ); 387 387 $form_fields['context'] = array( 'input' => 'hidden', 'value' => 'custom-background' ); 388 388 } 389 389 -
wp-admin/custom-header.php
955 955 'file' => $post->ID 956 956 ), admin_url('themes.php'))); 957 957 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>' ); 959 959 $form_fields['context'] = array( 'input' => 'hidden', 'value' => 'custom-header' ); 960 960 } 961 961