Changeset 23580
- Timestamp:
- 03/01/2013 06:59:54 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r23567 r23580 28 28 wp_die( __('There are no plugins installed on this site.') ); 29 29 30 if ( isset($_REQUEST['file']) ) 31 $plugin = wp_unslash($_REQUEST['file']); 32 33 if ( empty($plugin) ) { 30 if ( $file ) { 31 $plugin = $file; 32 } elseif ( empty( $plugin ) ) { 34 33 $plugin = array_keys($plugins); 35 34 $plugin = $plugin[0]; -
trunk/wp-admin/theme-editor.php
r23567 r23580 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.