WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/26/2020 06:01:18 PM (19 months 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.

File:
1 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 ) {
Note: See TracChangeset for help on using the changeset viewer.