WordPress.org

Make WordPress Core

Changeset 47857


Ignore:
Timestamp:
05/26/2020 06:01:18 PM (6 weeks ago)
Author:
whyisjake
Message:

Coding Standards: Change auto-update filters to be more consistent.

  • send_theme_auto_update_email 👉 auto_theme_update_send_email
  • wp_plugins_auto_update_enabled 👉 plugins_auto_update_enabled
  • wp_themes_auto_update_enabled 👉 themes_auto_update_enabled

Want to make sure that @ronalfy gets props for his work in #50052 too.

See #50052.
Props: ronalfy, pbiron, azaozz, audrasjb, whyisjake.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r47836 r47857  
    903903         * @param bool $enabled True if notifications are enabled, false otherwise.
    904904         */
    905         $notifications_enabled = apply_filters( 'send_theme_auto_update_email', true );
     905        $notifications_enabled = apply_filters( 'auto_theme_update_send_email', true );
    906906
    907907        if ( ! empty( $update_results['theme'] ) && $notifications_enabled ) {
  • trunk/src/wp-admin/includes/update.php

    r47835 r47857  
    958958             * @param bool $enabled True if plugins auto-update is enabled, false otherwise.
    959959             */
    960             return apply_filters( 'wp_plugins_auto_update_enabled', true );
     960            return apply_filters( 'plugins_auto_update_enabled', true );
    961961        case 'theme':
    962962            /**
     
    967967             * @param bool True if themes auto-update is enabled, false otherwise.
    968968             */
    969             return apply_filters( 'wp_themes_auto_update_enabled', true );
     969            return apply_filters( 'themes_auto_update_enabled', true );
    970970    }
    971971
Note: See TracChangeset for help on using the changeset viewer.