Changeset 12825
- Timestamp:
- 08/09/2023 08:58:32 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php
r12643 r12825 94 94 } 95 95 $url = home_url( '/' ); 96 // If a browse view, use that as the base. 97 if ( ! is_home() && $browse = get_query_var( 'browse' ) ) { 98 $url = home_url( "/browse/{$browse}/" ); 99 } 96 100 if ( $slug ) { 97 $url = add_query_arg( array( 'plugin_business_model' => $slug ) ); 98 } else if ( ! is_home() ) { 99 $url = remove_query_arg( 'plugin_business_model' ); 101 $url = add_query_arg( array( 'plugin_business_model' => $slug ), $url ); 100 102 } 101 103 printf(
Note: See TracChangeset
for help on using the changeset viewer.