Changeset 56176 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 07/09/2023 08:05:43 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r55990 r56176 179 179 ); 180 180 181 // Name is marked up inside <a> tags. Don't allow these. 182 // Author is too, but some plugins have used <a> here (omitting Author URI). 181 /* 182 * Name is marked up inside <a> tags. Don't allow these. 183 * Author is too, but some plugins have used <a> here (omitting Author URI). 184 */ 183 185 $plugin_data['Name'] = wp_kses( $plugin_data['Name'], $allowed_tags_in_links ); 184 186 $plugin_data['Author'] = wp_kses( $plugin_data['Author'], $allowed_tags ); … … 970 972 $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) ); 971 973 972 // If plugin is in its own directory, recursively delete the directory. 973 // Base check on if plugin includes directory separator AND that it's not the root plugin folder. 974 /* 975 * If plugin is in its own directory, recursively delete the directory. 976 * Base check on if plugin includes directory separator AND that it's not the root plugin folder. 977 */ 974 978 if ( strpos( $plugin_file, '/' ) && $this_plugin_dir !== $plugins_dir ) { 975 979 $deleted = $wp_filesystem->delete( $this_plugin_dir, true );
Note: See TracChangeset
for help on using the changeset viewer.