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/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.