Changeset 51530
- Timestamp:
- 08/03/2021 11:00:50 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-hook.php
r50811 r51530 438 438 * @return bool True if the offset exists, false otherwise. 439 439 */ 440 #[ReturnTypeWillChange] 440 441 public function offsetExists( $offset ) { 441 442 return isset( $this->callbacks[ $offset ] ); … … 452 453 * @return mixed If set, the value at the specified offset, null otherwise. 453 454 */ 455 #[ReturnTypeWillChange] 454 456 public function offsetGet( $offset ) { 455 457 return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] : null; … … 466 468 * @param mixed $value The value to set. 467 469 */ 470 #[ReturnTypeWillChange] 468 471 public function offsetSet( $offset, $value ) { 469 472 if ( is_null( $offset ) ) { … … 483 486 * @param mixed $offset The offset to unset. 484 487 */ 488 #[ReturnTypeWillChange] 485 489 public function offsetUnset( $offset ) { 486 490 unset( $this->callbacks[ $offset ] ); … … 496 500 * @return array Of callbacks at current priority. 497 501 */ 502 #[ReturnTypeWillChange] 498 503 public function current() { 499 504 return current( $this->callbacks ); … … 509 514 * @return array Of callbacks at next priority. 510 515 */ 516 #[ReturnTypeWillChange] 511 517 public function next() { 512 518 return next( $this->callbacks ); … … 522 528 * @return mixed Returns current priority on success, or NULL on failure 523 529 */ 530 #[ReturnTypeWillChange] 524 531 public function key() { 525 532 return key( $this->callbacks ); … … 535 542 * @return bool Whether the current position is valid. 536 543 */ 544 #[ReturnTypeWillChange] 537 545 public function valid() { 538 546 return key( $this->callbacks ) !== null; … … 546 554 * @link https://www.php.net/manual/en/iterator.rewind.php 547 555 */ 556 #[ReturnTypeWillChange] 548 557 public function rewind() { 549 558 reset( $this->callbacks );
Note: See TracChangeset
for help on using the changeset viewer.