Changeset 41449 for branches/3.9/src/wp-admin/plugin-editor.php
- Timestamp:
- 09/19/2017 01:43:28 PM (8 years ago)
- Location:
- branches/3.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/plugin-editor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9
- Property svn:mergeinfo changed
/branches/4.0 (added) merged: 41447 /branches/4.1 (added) merged: 41446 /branches/4.2 merged: 41445 /branches/4.3 merged: 41444 /branches/4.4 (added) merged: 41434 /branches/4.5 (added) merged: 41415-41416 /branches/4.6 merged: 41414 /trunk reverse-merged: 18512
- Property svn:mergeinfo changed
-
branches/3.9/src/wp-admin/plugin-editor.php
r27506 r41449 96 96 97 97 if ( ( ! empty( $_GET['networkwide'] ) && ! is_plugin_active_for_network($file) ) || ! is_plugin_active($file) ) 98 activate_plugin($file, "plugin-editor.php?file= $file&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error99 100 wp_redirect( self_admin_url("plugin-editor.php?file= $file&a=te&scrollto=$scrollto") );98 activate_plugin($file, "plugin-editor.php?file=" . urlencode( $file ) . "&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error 99 100 wp_redirect( self_admin_url("plugin-editor.php?file=" . urlencode( $file ) . "&a=te&scrollto=$scrollto") ); 101 101 exit; 102 102 } … … 184 184 if ( is_plugin_active($plugin) ) { 185 185 if ( is_writeable($real_file) ) 186 echo sprintf(__('Editing <strong>%s</strong> (active)'), $file);186 echo sprintf(__('Editing <strong>%s</strong> (active)'), esc_html( $file ) ); 187 187 else 188 echo sprintf(__('Browsing <strong>%s</strong> (active)'), $file);188 echo sprintf(__('Browsing <strong>%s</strong> (active)'), esc_html( $file ) ); 189 189 } else { 190 190 if ( is_writeable($real_file) ) 191 echo sprintf(__('Editing <strong>%s</strong> (inactive)'), $file);191 echo sprintf(__('Editing <strong>%s</strong> (inactive)'), esc_html( $file ) ); 192 192 else 193 echo sprintf(__('Browsing <strong>%s</strong> (inactive)'), $file);193 echo sprintf(__('Browsing <strong>%s</strong> (inactive)'), esc_html( $file ) ); 194 194 } 195 195 ?></big> … … 235 235 } 236 236 ?> 237 <li<?php echo $file == $plugin_file ? ' class="highlight"' : ''; ?>><a href="plugin-editor.php?file=<?php echo urlencode( $plugin_file ) ?>&plugin=<?php echo urlencode( $plugin ) ?>"><?php echo $plugin_file?></a></li>237 <li<?php echo $file == $plugin_file ? ' class="highlight"' : ''; ?>><a href="plugin-editor.php?file=<?php echo urlencode( $plugin_file ) ?>&plugin=<?php echo urlencode( $plugin ) ?>"><?php echo esc_html( $plugin_file ); ?></a></li> 238 238 <?php endforeach; ?> 239 239 </ul>
Note: See TracChangeset
for help on using the changeset viewer.