Ticket #21100: custom-header-21100-madtownlems.diff
| File custom-header-21100-madtownlems.diff, 1.1 KB (added by , 14 years ago) |
|---|
-
wp-admin/custom-header.php
767 767 <p class="submit"> 768 768 <?php submit_button( __( 'Crop and Publish' ), 'primary', 'submit', false ); ?> 769 769 <?php 770 if ( isset( $oitar ) && 1 == $oitar )770 if ( isset( $oitar ) && 1 == $oitar && ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) 771 771 submit_button( __( 'Skip Cropping, Publish Image as Is' ), 'secondary', 'skip-cropping', false ); 772 772 ?> 773 773 </p> … … 819 819 if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) 820 820 wp_die( __( 'Cheatin’ uh?' ) ); 821 821 822 if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) 823 wp_die( __( 'Cheatin’ uh?' ) ); 824 822 825 if ( $_POST['oitar'] > 1 ) { 823 826 $_POST['x1'] = $_POST['x1'] * $_POST['oitar']; 824 827 $_POST['y1'] = $_POST['y1'] * $_POST['oitar'];