Changeset 42343 for trunk/src/wp-includes/class-wp-dependency.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-dependency.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-dependency.php
r41162 r42343 75 75 public function __construct() { 76 76 @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args(); 77 if ( ! is_array( $this->deps) )77 if ( ! is_array( $this->deps ) ) { 78 78 $this->deps = array(); 79 } 79 80 } 80 81 … … 89 90 */ 90 91 public function add_data( $name, $data ) { 91 if ( ! is_scalar($name) )92 if ( ! is_scalar( $name ) ) { 92 93 return false; 93 $this->extra[$name] = $data; 94 } 95 $this->extra[ $name ] = $data; 94 96 return true; 95 97 }
Note: See TracChangeset
for help on using the changeset viewer.