Changeset 42246 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 11/27/2017 03:43:11 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/file.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r42244 r42246 415 415 } 416 416 417 $real_file = $theme->get_stylesheet_directory() . '/' . $file; 418 if ( ! wp_verify_nonce( $args['nonce'], 'edit-theme_' . $real_file . $stylesheet ) ) { 417 if ( ! wp_verify_nonce( $args['nonce'], 'edit-theme_' . $stylesheet . '_' . $file ) ) { 419 418 return new WP_Error( 'nonce_failure' ); 420 419 } … … 451 450 } 452 451 452 $real_file = $theme->get_stylesheet_directory() . '/' . $file; 453 453 454 $is_active = ( get_stylesheet() === $stylesheet || get_template() === $stylesheet ); 455 454 456 } else { 455 457 return new WP_Error( 'missing_theme_or_plugin' );
Note: See TracChangeset
for help on using the changeset viewer.