Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/14/2023 05:28:54 AM (14 months ago)
Author:
imath
Message:

Wait for bp-rewrites-ui JS to be registered before enqueuing it

+ Add emaralive to 12.0.0 credits list (See #9002).

Props emaralive

Fixes #9003
Closes https://github.com/buddypress/buddypress/pull/175

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-rewrites.php

    r13555 r13595  
    2929    );
    3030
    31     wp_enqueue_script( 'bp-rewrites-ui' );
    32 
    3331    // Handle slugs customization.
    3432    if ( isset( $_POST['bp-admin-rewrites-submit'] ) ) {
     
    113111    $bp_pages        = $bp->pages;
    114112    $reordered_pages = array();
     113
     114    wp_enqueue_script( 'bp-rewrites-ui' );
    115115
    116116    if ( isset( $bp_pages->register ) ) {
Note: See TracChangeset for help on using the changeset viewer.