Changeset 23567 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 03/01/2013 05:14:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r23554 r23567 69 69 $file = $allowed_files['style.css']; 70 70 } else { 71 $relative_file = stripslashes( $file );71 $relative_file = wp_unslash( $file ); 72 72 $file = $theme->get_stylesheet_directory() . '/' . $relative_file; 73 73 } … … 79 79 case 'update': 80 80 check_admin_referer( 'edit-theme_' . $file . $stylesheet ); 81 $newcontent = stripslashes( $_POST['newcontent'] );81 $newcontent = wp_unslash( $_POST['newcontent'] ); 82 82 $location = 'theme-editor.php?file=' . urlencode( $relative_file ) . '&theme=' . urlencode( $stylesheet ) . '&scrollto=' . $scrollto; 83 83 if ( is_writeable( $file ) ) {
Note: See TracChangeset
for help on using the changeset viewer.