Changeset 13648
- Timestamp:
- 11/23/2023 03:48:20 AM (16 months ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-tools.php
r13515 r13648 697 697 $active_components = array_intersect_key( bp_core_get_components(), buddypress()->active_components ); 698 698 $bp_settings = array(); 699 $bp_url_parsers = array( 700 'rewrites' => __( 'BP Rewrites API', 'buddypress' ), 701 'legacy' => __( 'Legacy Parser', 'buddypress' ), 702 ); 703 704 // Get the current URL parser. 705 $current_parser = bp_core_get_query_parser(); 706 if ( isset( $bp_url_parsers[ $current_parser ] ) ) { 707 $bp_url_parser = $bp_url_parsers[ $current_parser ]; 708 } else { 709 $bp_url_parser = __( 'Custom', 'buddypress' ); 710 } 711 699 712 700 713 foreach ( $wp_settings_fields['buddypress'] as $section => $settings ) { … … 755 768 'value' => bp_get_theme_compat_name() . ' ' . bp_get_theme_compat_version(), 756 769 ), 770 'url_parser' => array( 771 'label' => __( 'URL Parser', 'buddypress' ), 772 'value' => $bp_url_parser, 773 ), 757 774 ), 758 775 $bp_settings -
trunk/src/bp-core/bp-core-functions.php
r13632 r13648 143 143 144 144 /** 145 * Get the BuddyPress parser in use.145 * Get the BuddyPress URL Parser in use. 146 146 * 147 147 * @since 12.0.0
Note: See TracChangeset
for help on using the changeset viewer.