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.



git-svn-id: https://develop.svn.wordpress.org/trunk@47857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2020-05-26 18:01:18 +00:00
parent adcf5cf7a3
commit 8efc5321c9
2 changed files with 3 additions and 3 deletions

View File

@ -902,7 +902,7 @@ class WP_Automatic_Updater {
*
* @param bool $enabled True if notifications are enabled, false otherwise.
*/
$notifications_enabled = apply_filters( 'send_theme_auto_update_email', true );
$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true );
if ( ! empty( $update_results['theme'] ) && $notifications_enabled ) {
foreach ( $update_results['theme'] as $update_result ) {

View File

@ -957,7 +957,7 @@ function wp_is_auto_update_enabled_for_type( $type ) {
*
* @param bool $enabled True if plugins auto-update is enabled, false otherwise.
*/
return apply_filters( 'wp_plugins_auto_update_enabled', true );
return apply_filters( 'plugins_auto_update_enabled', true );
case 'theme':
/**
* Filters whether plugins manual auto-update is enabled.
@ -966,7 +966,7 @@ function wp_is_auto_update_enabled_for_type( $type ) {
*
* @param bool True if themes auto-update is enabled, false otherwise.
*/
return apply_filters( 'wp_themes_auto_update_enabled', true );
return apply_filters( 'themes_auto_update_enabled', true );
}
return false;