Making WordPress.org

Changeset 12825

Timestamp:
08/09/2023 08:58:32 PM (12 months ago)
Author:
coffee2code
Message:

Plugin Directory: Remove pagination from all/community/commercial filter links.

There is no need to preserve pagination when making the link for another filtered listing, which can result in a 404.

Props nayanchamp7, jonoaldersonwp, dd32, kawserz, coffee2code.
See #7085.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php

    r12643 r12825  
    9494                    }
    9595                    $url = home_url( '/' );
     96
     97
     98
     99
    96100                    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 );
    100102                    }
    101103                    printf(
Note: See TracChangeset for help on using the changeset viewer.