Changeset 47769
- Timestamp:
- 05/06/2020 04:25:09 PM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-dependencies.php
r47502 r47769 129 129 * 130 130 * @since 2.6.0 131 * 132 * @param string $handle Name of the item. Should be unique. 131 * @since 5.5.0 Added the `$group` parameter. 132 * 133 * @param string $handle Name of the item. Should be unique. 134 * @param int|false $group Optional. Group level: level (int), no groups (false). 135 * Default false. 133 136 * @return bool True on success, false if not set. 134 137 */ 135 public function do_item( $handle ) {138 public function do_item( $handle, $group = false ) { 136 139 return isset( $this->registered[ $handle ] ); 137 140 } -
trunk/src/wp-includes/class.wp-styles.php
r47219 r47769 140 140 * 141 141 * @since 2.6.0 142 * @since 5.5.0 Added the `$group` parameter. 142 143 * 143 144 * @see WP_Dependencies::do_item() 144 145 * 145 * @param string $handle The style's registered handle. 146 * @param string $handle The style's registered handle. 147 * @param int|false $group Optional. Group level: level (int), no groups (false). 148 * Default false. 146 149 * @return bool True on success, false on failure. 147 150 */ 148 public function do_item( $handle ) {151 public function do_item( $handle, $group = false ) { 149 152 if ( ! parent::do_item( $handle ) ) { 150 153 return false;
Note: See TracChangeset
for help on using the changeset viewer.