mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -196,7 +196,8 @@ class WP_Scripts extends WP_Dependencies {
|
||||
* @return bool|string|void Void if no data exists, extra scripts if `$echo` is true, true otherwise.
|
||||
*/
|
||||
public function print_extra_script( $handle, $echo = true ) {
|
||||
if ( ! $output = $this->get_data( $handle, 'data' ) ) {
|
||||
$output = $this->get_data( $handle, 'data' );
|
||||
if ( ! $output ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -252,7 +253,8 @@ class WP_Scripts extends WP_Dependencies {
|
||||
}
|
||||
|
||||
$src = $obj->src;
|
||||
$cond_before = $cond_after = '';
|
||||
$cond_before = '';
|
||||
$cond_after = '';
|
||||
$conditional = isset( $obj->extra['conditional'] ) ? $obj->extra['conditional'] : '';
|
||||
|
||||
if ( $conditional ) {
|
||||
|
||||
Reference in New Issue
Block a user