Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
remove useless var
Browse files Browse the repository at this point in the history
  • Loading branch information
audrasjb committed May 6, 2020
1 parent ae80df8 commit 112ed26
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,12 @@ function wp_autoupdates_prepare_themes_for_js( $prepared_themes ) {
* @return bool True if plugins auto-update is enabled, false otherwise.
*/
function wp_autoupdates_is_plugins_auto_update_enabled() {
$enabled = true;

/**
* Filters whether plugins manual auto-update is enabled.
*
* @param bool $enabled True if plugins auto-update is enabled, false otherwise.
*/
return apply_filters( 'wp_plugins_auto_update_enabled', $enabled );
return apply_filters( 'wp_plugins_auto_update_enabled', true );
}


Expand All @@ -186,14 +184,12 @@ function wp_autoupdates_is_plugins_auto_update_enabled() {
* @return bool True if themes auto-update is enabled, false otherwise.
*/
function wp_autoupdates_is_themes_auto_update_enabled() {
$enabled = true;

/**
* Filters whether themes manual auto-update is enabled.
*
* @param bool $enabled True if themes auto-update is enabled, false otherwise.
*/
return apply_filters( 'wp_themes_auto_update_enabled', $enabled );
return apply_filters( 'wp_themes_auto_update_enabled', true );
}


Expand Down Expand Up @@ -920,14 +916,12 @@ function wp_autoupdates_debug_information( $info ) {
* @return bool True if plugins notifications are enabled, false otherwise.
*/
function wp_autoupdates_is_plugins_auto_update_email_enabled() {
$enabled = true;

/**
* Filters whether plugins auto-update email notifications are enabled.
*
* @param bool $enabled True if plugins notifications are enabled, false otherwise.
*/
return apply_filters( 'send_plugins_auto_update_email', $enabled );
return apply_filters( 'send_plugins_auto_update_email', true );
}


Expand All @@ -937,14 +931,12 @@ function wp_autoupdates_is_plugins_auto_update_email_enabled() {
* @return bool True if themes notifications are enabled, false otherwise.
*/
function wp_autoupdates_is_themes_auto_update_email_enabled() {
$enabled = true;

/**
* Filters whether themes auto-update email notifications are enabled.
*
* @param bool $enabled True if themes notifications are enabled, false otherwise.
*/
return apply_filters( 'send_themes_auto_update_email', $enabled );
return apply_filters( 'send_themes_auto_update_email', true );
}


Expand Down

0 comments on commit 112ed26

Please sign in to comment.