Skip to:
Content

BuddyPress.org

Changeset 13550


Ignore:
Timestamp:
08/15/2023 06:31:31 AM (21 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

Fixes #8973 (11.0 branch)

File:
1 edited

Legend:

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

    r13329 r13550  
    11031103    }
    11041104
    1105     echo preg_replace( '/\<div\sclass=\".*\"\sid=\"tabs-panel-posttype-bp_nav_menu_item-search\"[^>]*>(.*?)\<\/div\>/s', $all_bp_tabs, $output );
     1105    echo preg_replace( '/\<div(\sclass=\".*\"\s|\s)id=\"tabs-panel-posttype-bp_nav_menu_item-search\"[^>]*>(.*?)\<\/div\>/s', $all_bp_tabs, $output );
    11061106}
    11071107
Note: See TracChangeset for help on using the changeset viewer.