Changeset 61358
- Timestamp:
- 12/07/2025 04:14:08 AM (2 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
-
class-wp-dependencies.php (modified) (2 diffs)
-
class-wp-dependency.php (modified) (2 diffs)
-
class-wp-scripts.php (modified) (4 diffs)
-
class-wp-styles.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-dependencies.php
r61357 r61358 57 57 * An array of additional arguments passed when a handle is registered. 58 58 * 59 * Arguments are appended to the item query string. 59 * The keys are dependency handles and the values are query strings which are appended to the item URL's query 60 * string, after the `ver` if provided. 60 61 * 61 62 * @since 2.6.0 62 63 * 63 * @var array 64 * @var array<string, string> 64 65 */ 65 66 public $args = array(); … … 101 102 * @since 5.9.0 102 103 * 103 * @var array 104 * @var array<string, string|null> 104 105 */ 105 106 private $queued_before_register = array(); -
trunk/src/wp-includes/class-wp-dependency.php
r60931 r61358 67 67 * 68 68 * @since 2.6.0 69 * @var array 69 * @var array<string, mixed> 70 70 */ 71 71 public $extra = array(); … … 83 83 * 84 84 * @since 5.0.0 85 * @var string 85 * @var string|null 86 86 */ 87 87 public $translations_path; -
trunk/src/wp-includes/class-wp-scripts.php
r61357 r61358 47 47 * 48 48 * @since 2.8.0 49 * @var array49 * @var string[] 50 50 */ 51 51 public $in_footer = array(); … … 119 119 * 120 120 * @since 2.8.0 121 * @var array121 * @var string[]|null 122 122 */ 123 123 public $default_dirs; … … 375 375 376 376 if ( 377 $this->in_default_dir( $filtered_src ) 377 is_string( $filtered_src ) 378 && $this->in_default_dir( $filtered_src ) 378 379 && ( $before_script || $after_script || $translations_stop_concat || $this->is_delayed_strategy( $strategy ) ) 379 380 ) { … … 590 591 * @since 2.1.0 591 592 * 592 * @param string $handle Name of the script to attach data to.593 * @param string $object_name Name of the variable that will contain the data.594 * @param array $l10n Array of data to localize.593 * @param string $handle Name of the script to attach data to. 594 * @param string $object_name Name of the variable that will contain the data. 595 * @param array<string, mixed> $l10n Array of data to localize. 595 596 * @return bool True on success, false on failure. 596 597 */ -
trunk/src/wp-includes/class-wp-styles.php
r61357 r61358 97 97 * 98 98 * @since 2.8.0 99 * @var array99 * @var string[]|null 100 100 */ 101 101 public $default_dirs; … … 184 184 185 185 if ( $this->do_concat ) { 186 if ( $this->in_default_dir( $src ) && ! isset( $obj->extra['alt'] ) ) {186 if ( is_string( $src ) && $this->in_default_dir( $src ) && ! isset( $obj->extra['alt'] ) ) { 187 187 $this->concat .= "$handle,"; 188 188 $this->concat_version .= "$handle$ver";
Note: See TracChangeset
for help on using the changeset viewer.