Make WordPress Core


Ignore:
Timestamp:
07/09/2023 08:05:43 PM (17 months ago)
Author:
audrasjb
Message:

Docs: Replace multiple single line comments with multi-line comments.

This changeset updates various comments as per WordPress PHP Inline Documentation Standards.
See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments.

Follow-up to [56174], [56175].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r55990 r56176  
    179179    );
    180180
    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     */
    183185    $plugin_data['Name']   = wp_kses( $plugin_data['Name'], $allowed_tags_in_links );
    184186    $plugin_data['Author'] = wp_kses( $plugin_data['Author'], $allowed_tags );
     
    970972        $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) );
    971973
    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         */
    974978        if ( strpos( $plugin_file, '/' ) && $this_plugin_dir !== $plugins_dir ) {
    975979            $deleted = $wp_filesystem->delete( $this_plugin_dir, true );
Note: See TracChangeset for help on using the changeset viewer.