Changeset 13943
- Timestamp:
- 07/03/2024 06:16:22 AM (4 months ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-update.php
r13907 r13943 977 977 } 978 978 } 979 980 /* 981 * Force permalinks to be refreshed at next page load. 982 * 983 * This will make sure configs using BP Classic won't include 984 * unnecessary rewrite rules. 985 * 986 * @see https://buddypress.trac.wordpress.org/ticket/9192 987 */ 988 if ( 'rewrites' !== bp_core_get_query_parser() ) { 989 bp_delete_rewrite_rules(); 990 } 979 991 } 980 992 -
trunk/src/bp-core/classes/class-bp-component.php
r13900 r13943 1071 1071 */ 1072 1072 public function add_rewrite_tags( $rewrite_tags = array() ) { 1073 if ( array_filter( $this->rewrite_ids ) ) {1073 if ( 'rewrites' === bp_core_get_query_parser() && array_filter( $this->rewrite_ids ) ) { 1074 1074 $chunks = bp_rewrites_get_default_url_chunks(); 1075 1075 … … 1120 1120 */ 1121 1121 public function add_rewrite_rules( $rewrite_rules = array() ) { 1122 if ( array_filter( $this->rewrite_ids ) ) {1122 if ( 'rewrites' === bp_core_get_query_parser() && array_filter( $this->rewrite_ids ) ) { 1123 1123 $priority = 'top'; 1124 1124 $chunks = array_merge( bp_rewrites_get_default_url_chunks(), $rewrite_rules ); … … 1212 1212 } 1213 1213 1214 if ( $permastructs ) {1214 if ( 'rewrites' === bp_core_get_query_parser() && $permastructs ) { 1215 1215 foreach ( $permastructs as $name => $params ) { 1216 1216 if ( ! $name || ! isset( $params['permastruct'] ) || ! $params['permastruct'] ) {
Note: See TracChangeset
for help on using the changeset viewer.