Skip to:
Content

BuddyPress.org

Ticket #9192: class-bp-component.php.patch

File class-bp-component.php.patch, 521 bytes (added by dontdream, 5 months ago)

don't add the new rewrite rules when BP Classic is active

  • class-bp-component.php

     
    11191119         * }
    11201120         */
    11211121        public function add_rewrite_rules( $rewrite_rules = array() ) {
     1122
     1123                if ( 'rewrites' !== bp_core_get_query_parser() ) {
     1124                        return;
     1125                }
     1126
    11221127                if ( array_filter( $this->rewrite_ids ) ) {
    11231128                        $priority = 'top';
    11241129                        $chunks   = array_merge( bp_rewrites_get_default_url_chunks(), $rewrite_rules );