- Timestamp:
- 02/02/2024 08:22:11 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-bindings-registry.php
r57514 r57526 58 58 * i.e. {"key": "foo"}. 59 59 * - @param WP_Block $block_instance The block instance. 60 * - @param string $attribute_name The name of an attribute.60 * - @param string $attribute_name The name of the target attribute. 61 61 * The callback has a mixed return type; it may return a string to override 62 62 * the block's original value, null, false to remove an attribute, etc. … … 64 64 * @return array|false Source when the registration was successful, or `false` on failure. 65 65 */ 66 public function register( $source_name, array $source_properties ) {66 public function register( string $source_name, array $source_properties ) { 67 67 if ( ! is_string( $source_name ) ) { 68 68 _doing_it_wrong( … … 121 121 * @return array|false The unregistered block bindings source on success and `false` otherwise. 122 122 */ 123 public function unregister( $source_name ) {123 public function unregister( string $source_name ) { 124 124 if ( ! $this->is_registered( $source_name ) ) { 125 125 _doing_it_wrong( … … 157 157 * @return array|null The registered block bindings source, or `null` if it is not registered. 158 158 */ 159 public function get_registered( $source_name ) {159 public function get_registered( string $source_name ) { 160 160 if ( ! $this->is_registered( $source_name ) ) { 161 161 return null;
Note: See TracChangeset
for help on using the changeset viewer.