Changeset 22468 for trunk/wp-admin/custom-header.php
- Timestamp:
- 11/08/2012 07:11:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r22462 r22468 747 747 <?php submit_button( __( 'Crop and Publish' ), 'primary', 'submit', false ); ?> 748 748 <?php 749 if ( isset( $oitar ) && 1 == $oitar )749 if ( isset( $oitar ) && 1 == $oitar && ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) 750 750 submit_button( __( 'Skip Cropping, Publish Image as Is' ), 'secondary', 'skip-cropping', false ); 751 751 ?> … … 799 799 wp_die( __( 'Cheatin’ uh?' ) ); 800 800 801 if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) 802 wp_die( __( 'Cheatin’ uh?' ) ); 803 801 804 if ( $_POST['oitar'] > 1 ) { 802 805 $_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
Note: See TracChangeset
for help on using the changeset viewer.