Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/15/2023 06:16:51 AM (14 months ago)
Author:
imath
Message:

Menu Administration: make sure the BP Member "All" tab is populated

As WordPress 6.3 updated the markup of the container BuddyPress uses to inject All menu item checkboxes, we need to edit the Regex helping us to identify it accordingly.

Props vapvarun

See #8973 (trunk)
Closes https://github.com/buddypress/buddypress/pull/149

File:
1 edited

Legend:

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

    r13514 r13549  
    10891089    }
    10901090
    1091     echo preg_replace( '/\<div\sclass=\".*\"\sid=\"tabs-panel-posttype-bp_nav_menu_item-search\"[^>]*>(.*?)\<\/div\>/s', $all_bp_tabs, $output );
     1091    echo preg_replace( '/\<div(\sclass=\".*\"\s|\s)id=\"tabs-panel-posttype-bp_nav_menu_item-search\"[^>]*>(.*?)\<\/div\>/s', $all_bp_tabs, $output );
    10921092}
    10931093
Note: See TracChangeset for help on using the changeset viewer.