From 57fb3c6cf016678ab38d7a636b8df41fa2d955f1 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Tue, 26 May 2020 18:03:08 +0000 Subject: [PATCH] Coding Standards: Change auto-update filters to be more consistent. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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. Built from https://develop.svn.wordpress.org/trunk@47857 git-svn-id: http://core.svn.wordpress.org/trunk@47633 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-automatic-updater.php | 2 +- wp-admin/includes/update.php | 4 ++-- wp-includes/version.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index ef5690faac..a1efdc2bb2 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -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 ) { diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 3bc42e8fc1..6990542072 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0d0a7283ca..34dcadf7fb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47856'; +$wp_version = '5.5-alpha-47857'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.