Make WordPress Core


Ignore:
Timestamp:
07/09/2023 07:50:52 PM (3 years 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.

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r55911 r56174  
    213213                add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ), 10, 4 );
    214214                add_filter( 'upgrader_post_install', array( $this, 'active_after' ), 10, 2 );
    215                 // There's a Trac ticket to move up the directory for zips which are made a bit differently, useful for non-.org plugins.
    216                 // 'source_selection' => array( $this, 'source_selection' ),
     215                /*
     216                 * There's a Trac ticket to move up the directory for zips which are made a bit differently, useful for non-.org plugins.
     217                 * 'source_selection' => array( $this, 'source_selection' ),
     218                 */
    217219                if ( $parsed_args['clear_update_cache'] ) {
    218220                        // Clear cache so wp_update_plugins() knows about the new plugin.
    … …  
    253255                wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );
    254256
    255                 // Ensure any future auto-update failures trigger a failure email by removing
    256                 // the last failure notification from the list when plugins update successfully.
     257                /*
     258                 * Ensure any future auto-update failures trigger a failure email by removing
     259                 * the last failure notification from the list when plugins update successfully.
     260                 */
    257261                $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
    258262
    … …  
    390394                remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) );
    391395
    392                 // Ensure any future auto-update failures trigger a failure email by removing
    393                 // the last failure notification from the list when plugins update successfully.
     396                /*
     397                 * Ensure any future auto-update failures trigger a failure email by removing
     398                 * the last failure notification from the list when plugins update successfully.
     399                 */
    394400                $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
    395401
    … …  
    652658                }
    653659
    654                 // If plugin is in its own directory, recursively delete the directory.
    655                 // Base check on if plugin includes directory separator AND that it's not the root plugin folder.
     660                /*
     661                 * If plugin is in its own directory, recursively delete the directory.
     662                 * Base check on if plugin includes directory separator AND that it's not the root plugin folder.
     663                 */
    656664                if ( strpos( $plugin, '/' ) && $this_plugin_dir !== $plugins_dir ) {
    657665                        $deleted = $wp_filesystem->delete( $this_plugin_dir, true );
Note: See TracChangeset for help on using the changeset viewer.