Make WordPress Core

Ticket #60386: 60386.patch

File 60386.patch, 1.4 KB (added by shailu25, 14 months ago)

Patch Added

  • src/wp-includes/block-bindings.php

    diff --git a/src/wp-includes/block-bindings.php b/src/wp-includes/block-bindings.php
    index d0def1c86e..e49fa4afb2 100644
    a b function register_block_bindings_source( $source_name, array $source_properties 
    4848 * @since 6.5.0
    4949 *
    5050 * @param string $source_name Block bindings source name including namespace.
    51  * @return array|false The unregistred block bindings source on success and `false` otherwise.
     51 * @return array|false The unregistered block bindings source on success and `false` otherwise.
    5252 */
    5353function unregister_block_bindings_source( $source_name ) {
    5454        return WP_Block_Bindings_Registry::get_instance()->unregister( $source_name );
  • src/wp-includes/class-wp-block-bindings-registry.php

    diff --git a/src/wp-includes/class-wp-block-bindings-registry.php b/src/wp-includes/class-wp-block-bindings-registry.php
    index 8b36387552..d34733327a 100644
    a b final class WP_Block_Bindings_Registry { 
    116116         * @since 6.5.0
    117117         *
    118118         * @param string $source_name Block bindings source name including namespace.
    119          * @return array|false The unregistred block bindings source on success and `false` otherwise.
     119         * @return array|false The unregistered block bindings source on success and `false` otherwise.
    120120         */
    121121        public function unregister( $source_name ) {
    122122                if ( ! $this->is_registered( $source_name ) ) {