mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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:
@@ -160,7 +160,8 @@ function plugins_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' );
|
||||
}
|
||||
|
||||
@@ -238,8 +239,9 @@ function plugins_api( $action, $args = array() ) {
|
||||
* @return array
|
||||
*/
|
||||
function install_popular_tags( $args = array() ) {
|
||||
$key = md5( serialize( $args ) );
|
||||
if ( false !== ( $tags = get_site_transient( 'poptags_' . $key ) ) ) {
|
||||
$key = md5( serialize( $args ) );
|
||||
$tags = get_site_transient( 'poptags_' . $key );
|
||||
if ( false !== $tags ) {
|
||||
return $tags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user