Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/25/2023 05:18:41 PM (2 years ago)
Author:
imath
Message:

Fully deprecate bp_nav & bp_options_nav BP globals

These back compatibility mechanism, which was in BP since version 2.6, has moved to the BP Classic plugin.

Fixes #8927
Closes https://github.com/buddypress/buddypress/pull/121

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/routing/core.php

    r13461 r13507  
    2121        $this->set_permalink_structure( $this->permalink_structure );
    2222    }
     23
    2324    function test_wordpress_page() {
    2425        $this->set_permalink_structure( '/%postname%/' );
     
    2627        $this->assertEmpty( bp_current_component() );
    2728    }
    28 
    29     /**
    30      * @expectedIncorrectUsage bp_nav
    31      */
    32     function test_nav_menu() {
    33         $this->set_permalink_structure( '/%postname%/' );
    34         $this->go_to( '/' );
    35         $this->assertTrue( isset( buddypress()->bp_nav['activity'] ) );
    36         $this->assertTrue( isset( buddypress()->bp_nav['profile'] ) );
    37     }
    3829}
Note: See TracChangeset for help on using the changeset viewer.