Changeset 46410
- Timestamp:
- 10/06/2019 02:21:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r46198 r46410 86 86 $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' ); 87 87 88 // Site Wide Only is the old header for Network 88 // Site Wide Only is the old header for Network. 89 89 if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) { 90 90 /* translators: 1: Site Wide Only: true, 2: Network: true */ … … 143 143 function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) { 144 144 145 // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path 145 // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path. 146 146 $plugin_file = plugin_basename( $plugin_file ); 147 147 148 // Translate fields 148 // Translate fields. 149 149 if ( $translate ) { 150 150 $textdomain = $plugin_data['TextDomain']; … … 168 168 } 169 169 170 // Sanitize fields 170 // Sanitize fields. 171 171 $allowed_tags_in_links = array( 172 172 'abbr' => array( 'title' => true ), … … 197 197 $plugin_data['AuthorName'] = $plugin_data['Author']; 198 198 199 // Apply markup 199 // Apply markup. 200 200 if ( $markup ) { 201 201 if ( $plugin_data['PluginURI'] && $plugin_data['Name'] ) { … … 293 293 } 294 294 295 // Files in wp-content/plugins directory 295 // Files in wp-content/plugins directory. 296 296 $plugins_dir = @ opendir( $plugin_root ); 297 297 $plugin_files = array(); … … 359 359 function get_mu_plugins() { 360 360 $wp_plugins = array(); 361 // Files in wp-content/mu-plugins directory 361 // Files in wp-content/mu-plugins directory. 362 362 $plugin_files = array(); 363 363 … … 432 432 $_dropins = _get_dropins(); 433 433 434 // These exist in the wp-content directory 434 // These exist in the wp-content directory. 435 435 $plugins_dir = @opendir( WP_CONTENT_DIR ); 436 436 if ( $plugins_dir ) { … … 1538 1538 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. 1539 1539 */ 1540 1541 1540 function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { 1542 1541 if ( current_user_can( 'edit_users' ) ) { … … 1547 1546 return add_submenu_page( $parent, $page_title, $menu_title, $capability, $menu_slug, $function, $position ); 1548 1547 } 1548 1549 1549 /** 1550 1550 * Add submenu page to the Dashboard main menu.
Note: See TracChangeset
for help on using the changeset viewer.