WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2020 01:33:32 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Simplify compatibility checks for uploaded plugins and themes for better readability.

Use $new_plugin_data and $new_theme_data as a shorthand for the corresponding $this->upgrader properties.

Follow-up to [48390], [48448].

Props afragen.
See #9757.

File:
1 edited

Legend:

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

    r48446 r48455  
    274274             * @since 5.5.0
    275275             *
    276              * @param string  $package          The package file.
    277              * @param array   $new_plugin_data The new theme data.
    278              * @param string  $package_type     The package type (plugin or theme).
     276             * @param string  $package        The package file.
     277             * @param array   $new_theme_data The new theme data.
     278             * @param string  $package_type   The package type (plugin or theme).
    279279             */
    280280            do_action( 'upgrader_overwrote_package', $package, $this->new_theme_data, 'theme' );
Note: See TracChangeset for help on using the changeset viewer.