Changeset 60932
- Timestamp:
- 10/14/2025 10:13:41 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/theme-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r60681 r60932 122 122 123 123 if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) { 124 $r = wp_edit_theme_plugin_file( wp_unslash( $_POST ) ); 125 if ( is_wp_error( $r ) ) { 126 $edit_error = $r; 124 $edit_result = wp_edit_theme_plugin_file( wp_unslash( $_POST ) ); 125 126 if ( is_wp_error( $edit_result ) ) { 127 $edit_error = $edit_result; 128 127 129 if ( check_ajax_referer( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce', false ) && isset( $_POST['newcontent'] ) ) { 128 130 $posted_content = wp_unslash( $_POST['newcontent'] );
Note: See TracChangeset
for help on using the changeset viewer.