WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/06/2019 02:21:42 AM (5 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Format comments in wp-admin/includes/plugin.php as per the documentation standards.

Props dkarfa.
Fixes #48191.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r46198 r46410  
    8686    $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' );
    8787
    88     // Site Wide Only is the old header for Network
     88    // Site Wide Only is the old header for Network.
    8989    if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) {
    9090        /* translators: 1: Site Wide Only: true, 2: Network: true */
     
    143143function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) {
    144144
    145     // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path
     145    // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path.
    146146    $plugin_file = plugin_basename( $plugin_file );
    147147
    148     // Translate fields
     148    // Translate fields.
    149149    if ( $translate ) {
    150150        $textdomain = $plugin_data['TextDomain'];
     
    168168    }
    169169
    170     // Sanitize fields
     170    // Sanitize fields.
    171171    $allowed_tags_in_links = array(
    172172        'abbr'    => array( 'title' => true ),
     
    197197    $plugin_data['AuthorName'] = $plugin_data['Author'];
    198198
    199     // Apply markup
     199    // Apply markup.
    200200    if ( $markup ) {
    201201        if ( $plugin_data['PluginURI'] && $plugin_data['Name'] ) {
     
    293293    }
    294294
    295     // Files in wp-content/plugins directory
     295    // Files in wp-content/plugins directory.
    296296    $plugins_dir  = @ opendir( $plugin_root );
    297297    $plugin_files = array();
     
    359359function get_mu_plugins() {
    360360    $wp_plugins = array();
    361     // Files in wp-content/mu-plugins directory
     361    // Files in wp-content/mu-plugins directory.
    362362    $plugin_files = array();
    363363
     
    432432    $_dropins = _get_dropins();
    433433
    434     // These exist in the wp-content directory
     434    // These exist in the wp-content directory.
    435435    $plugins_dir = @opendir( WP_CONTENT_DIR );
    436436    if ( $plugins_dir ) {
     
    15381538 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
    15391539 */
    1540 
    15411540function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
    15421541    if ( current_user_can( 'edit_users' ) ) {
     
    15471546    return add_submenu_page( $parent, $page_title, $menu_title, $capability, $menu_slug, $function, $position );
    15481547}
     1548
    15491549/**
    15501550 * Add submenu page to the Dashboard main menu.
Note: See TracChangeset for help on using the changeset viewer.