Changeset 41456 for branches/3.7/src/wp-admin/plugin-editor.php
- Timestamp:
- 09/19/2017 01:50:05 PM (8 years ago)
- Location:
- branches/3.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
- Property svn:mergeinfo changed
/branches/3.8 merged: 41452 /branches/3.9 merged: 41449 /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
- Property svn:mergeinfo changed
-
branches/3.7/src
- Property svn:mergeinfo changed
/branches/3.8/src (added) merged: 41452
- Property svn:mergeinfo changed
-
branches/3.7/src/wp-admin/plugin-editor.php
r25616 r41456 87 87 88 88 if ( ( ! empty( $_GET['networkwide'] ) && ! is_plugin_active_for_network($file) ) || ! is_plugin_active($file) ) 89 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 error90 91 wp_redirect( self_admin_url("plugin-editor.php?file= $file&a=te&scrollto=$scrollto") );89 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 90 91 wp_redirect( self_admin_url("plugin-editor.php?file=" . urlencode( $file ) . "&a=te&scrollto=$scrollto") ); 92 92 exit; 93 93 } … … 176 176 if ( is_plugin_active($plugin) ) { 177 177 if ( is_writeable($real_file) ) 178 echo sprintf(__('Editing <strong>%s</strong> (active)'), $file);178 echo sprintf(__('Editing <strong>%s</strong> (active)'), esc_html( $file ) ); 179 179 else 180 echo sprintf(__('Browsing <strong>%s</strong> (active)'), $file);180 echo sprintf(__('Browsing <strong>%s</strong> (active)'), esc_html( $file ) ); 181 181 } else { 182 182 if ( is_writeable($real_file) ) 183 echo sprintf(__('Editing <strong>%s</strong> (inactive)'), $file);183 echo sprintf(__('Editing <strong>%s</strong> (inactive)'), esc_html( $file ) ); 184 184 else 185 echo sprintf(__('Browsing <strong>%s</strong> (inactive)'), $file);185 echo sprintf(__('Browsing <strong>%s</strong> (inactive)'), esc_html( $file ) ); 186 186 } 187 187 ?></big> … … 227 227 } 228 228 ?> 229 <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>229 <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> 230 230 <?php endforeach; ?> 231 231 </ul>
Note: See TracChangeset
for help on using the changeset viewer.