Changeset 60951 for trunk/src/wp-includes/class-wp-script-modules.php
- Timestamp:
- 10/16/2025 11:30:56 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-script-modules.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-script-modules.php
r60931 r60951 29 29 * @var string[] 30 30 */ 31 p ublic$queue = array();31 private $queue = array(); 32 32 33 33 /** … … 139 139 140 140 /** 141 * Gets IDs for queued script modules. 142 * 143 * @since 6.9.0 144 * 145 * @return string[] Script module IDs. 146 */ 147 public function get_queue(): array { 148 return $this->queue; 149 } 150 151 /** 141 152 * Checks if the provided fetchpriority is valid. 142 153 * … … 238 249 */ 239 250 public function dequeue( string $id ) { 240 $this->queue = array_ diff( $this->queue, array( $id) );251 $this->queue = array_values( array_diff( $this->queue, array( $id ) ) ); 241 252 } 242 253
Note: See TracChangeset
for help on using the changeset viewer.