Skip to:
Content

BuddyPress.org

Changeset 12661


Ignore:
Timestamp:
06/06/2020 09:38:19 AM (5 years ago)
Author:
imath
Message:

BP Blocks API: rename the filter to edit blocks translation domain

It avoids a duplicate with the name of the filter to edit the blocks translation directory.

See #8312 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-block.php

    r12578 r12661  
    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            }
Note: See TracChangeset for help on using the changeset viewer.