Skip to content

Commit f8fce1d

Browse files
committed
code quality: remove unreachable _doing_it_wrong from WP_Block_Bindings_Registry::register()
1 parent cddecb0 commit f8fce1d

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/wp-includes/class-wp-block-bindings-registry.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,6 @@ final class WP_Block_Bindings_Registry {
9595
* @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure.
9696
*/
9797
public function register( string $source_name, array $source_properties ) {
98-
if ( ! is_string( $source_name ) ) {
99-
_doing_it_wrong(
100-
__METHOD__,
101-
__( 'Block bindings source name must be a string.' ),
102-
'6.5.0'
103-
);
104-
return false;
105-
}
106-
10798
if ( preg_match( '/[A-Z]+/', $source_name ) ) {
10899
_doing_it_wrong(
109100
__METHOD__,

0 commit comments

Comments
 (0)