mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -303,7 +303,8 @@ function get_theme_feature_list( $api = true ) {
|
||||
return $features;
|
||||
}
|
||||
|
||||
if ( ! $feature_list = get_site_transient( 'wporg_theme_feature_list' ) ) {
|
||||
$feature_list = get_site_transient( 'wporg_theme_feature_list' );
|
||||
if ( ! $feature_list ) {
|
||||
set_site_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
|
||||
}
|
||||
|
||||
@@ -490,7 +491,8 @@ function themes_api( $action, $args = array() ) {
|
||||
);
|
||||
|
||||
$http_url = $url;
|
||||
if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) {
|
||||
$ssl = wp_http_supports( array( 'ssl' ) );
|
||||
if ( $ssl ) {
|
||||
$url = set_url_scheme( $url, 'https' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user