Changeset 42246 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 11/27/2017 03:43:11 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r42228 r42246 115 115 if ( is_wp_error( $r ) ) { 116 116 $edit_error = $r; 117 if ( check_ajax_referer( 'edit-theme_' . $ file . $stylesheet, 'nonce', false ) && isset( $_POST['newcontent'] ) ) {117 if ( check_ajax_referer( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce', false ) && isset( $_POST['newcontent'] ) ) { 118 118 $posted_content = wp_unslash( $_POST['newcontent'] ); 119 119 } … … 256 256 else : ?> 257 257 <form name="template" id="template" action="theme-editor.php" method="post"> 258 <?php wp_nonce_field( 'edit-theme_' . $ file . $stylesheet, 'nonce' ); ?>258 <?php wp_nonce_field( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce' ); ?> 259 259 <div> 260 260 <label for="newcontent" id="theme-plugin-editor-label"><?php _e( 'Selected file content:' ); ?></label>
Note: See TracChangeset
for help on using the changeset viewer.