Changeset 23419
- Timestamp:
- 02/15/2013 02:01:36 AM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
plugin-editor.php (modified) (2 diffs)
-
theme-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r23416 r23419 21 21 $parent_file = 'plugins.php'; 22 22 23 wp_reset_vars( array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'plugin'));23 wp_reset_vars( array( 'action', 'error', 'file', 'plugin' ) ); 24 24 25 25 $plugins = get_plugins(); … … 40 40 if ( empty($file) ) 41 41 $file = $plugin_files[0]; 42 else43 $file = wp_unslash($file);44 42 45 43 $file = validate_file_to_edit($file, $plugin_files); -
trunk/wp-admin/theme-editor.php
r23416 r23419 69 69 $file = $allowed_files['style.css']; 70 70 } else { 71 $relative_file = wp_unslash( $file );71 $relative_file = $file; 72 72 $file = $theme->get_stylesheet_directory() . '/' . $relative_file; 73 73 }
Note: See TracChangeset
for help on using the changeset viewer.