Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/16/2017 03:49:08 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Core: Make sure trashed activate and register pages are unset in bp_core_get_directory_page_ids().

This flips the order of 2 conditions, which incorrectly included trashed pages for the activate & register components.

In addition, normalize the return value & type-casting of bp_core_get_directory_page_ids() to ensure it is always an array, even if an empty one.

Fixes #7469.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/admin/functions.php

    r10972 r11513  
    145145        ) ) );
    146146
    147         $page_ids = array_merge( $new_page_ids, (array) bp_core_get_directory_page_ids( 'all' ) );
     147        $page_ids = array_merge( $new_page_ids, bp_core_get_directory_page_ids( 'all' ) );
    148148        bp_core_update_directory_page_ids( $page_ids );
    149149
Note: See TracChangeset for help on using the changeset viewer.