Skip to:
Content

BuddyPress.org

Ticket #8312: 8312.patch

File 8312.patch, 899 bytes (added by imath, 5 years ago)
  • src/bp-core/classes/class-bp-block.php

    diff --git src/bp-core/classes/class-bp-block.php src/bp-core/classes/class-bp-block.php
    index 3f75a3644..baf31c837 100644
    class BP_Block { 
    186186                                         * @param string $editor_script The editor's script handle.
    187187                                         * @param string $name          The block's name.
    188188                                         */
    189                                         $domain = apply_filters( 'bp_block_translation_dir', 'buddypress', $this->block->editor_script, $name );
     189                                        $translation_domain = apply_filters( 'bp_block_translation_domain', 'buddypress', $this->block->editor_script, $name );
    190190
    191191                                        // Try to load the translation.
    192                                         $translated = wp_set_script_translations( $this->block->editor_script, $domain, $translation_dir );
     192                                        $translated = wp_set_script_translations( $this->block->editor_script, $translation_domain, $translation_dir );
    193193                                }
    194194                        }
    195195                }