Changeset 41415 for branches/4.5/src/wp-admin/plugin-editor.php
- Timestamp:
- 09/19/2017 10:31:43 AM (7 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/branches/4.6 merged: 41414
- Property svn:mergeinfo changed
-
branches/4.5/src/wp-admin/plugin-editor.php
r35107 r41415 97 97 98 98 if ( ( ! empty( $_GET['networkwide'] ) && ! is_plugin_active_for_network($file) ) || ! is_plugin_active($file) ) 99 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 error100 101 wp_redirect( self_admin_url("plugin-editor.php?file= $file&a=te&scrollto=$scrollto") );99 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 100 101 wp_redirect( self_admin_url("plugin-editor.php?file=" . urlencode( $file ) . "&a=te&scrollto=$scrollto") ); 102 102 exit; 103 103 } … … 192 192 if ( is_writeable( $real_file ) ) { 193 193 /* translators: %s: plugin file name */ 194 echo sprintf( __( 'Editing %s (active)' ), '<strong>' . $file. '</strong>' );194 echo sprintf( __( 'Editing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' ); 195 195 } else { 196 196 /* translators: %s: plugin file name */ 197 echo sprintf( __( 'Browsing %s (active)' ), '<strong>' . $file. '</strong>' );197 echo sprintf( __( 'Browsing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' ); 198 198 } 199 199 } else { 200 200 if ( is_writeable( $real_file ) ) { 201 201 /* translators: %s: plugin file name */ 202 echo sprintf( __( 'Editing %s (inactive)' ), '<strong>' . $file. '</strong>' );202 echo sprintf( __( 'Editing %s (inactive)' ), '<strong>' . esc_html( $file ) . '</strong>' ); 203 203 } else { 204 204 /* translators: %s: plugin file name */ 205 echo sprintf( __( 'Browsing %s (inactive)' ), '<strong>' . $file. '</strong>' );205 echo sprintf( __( 'Browsing %s (inactive)' ), '<strong>' . esc_html( $file ) . '</strong>' ); 206 206 } 207 207 } … … 248 248 } 249 249 ?> 250 <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>250 <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> 251 251 <?php endforeach; ?> 252 252 </ul>
Note: See TracChangeset
for help on using the changeset viewer.