Making WordPress.org


Ignore:
Timestamp:
03/03/2023 11:02:26 AM (3 years ago)
Author:
paulkevan
Message:

Update URL with current path to FAQ, to avoid a redirect.

Currently [plugin]/faq/ gets redirected to [plugin]/#faq, this changed skips that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php

    r12411 r12447  
    135135        $icon       = '';
    136136        $plugin     = sprintf( '<a href="%s">%s</a>', esc_url( $plugin_repo_url ), esc_html( $this->plugin->post_title ) );
    137         $faq        = sprintf( '<a href="%s">%s</a>', esc_url( $plugin_repo_url . 'faq/' ), __( 'Frequently Asked Questions', 'wporg-forums' ) );
     137        $faq        = sprintf( '<a href="%s">%s</a>', esc_url( $plugin_repo_url . '#faq' ), __( 'Frequently Asked Questions', 'wporg-forums' ) );
    138138        $support    = sprintf( '<a href="%s">%s</a>', home_url( '/plugin/' . esc_attr( $this->slug() ) . '/' ), __( 'Support Threads', 'wporg-forums' ) );
    139139        $active     = sprintf( '<a href="%s">%s</a>', home_url( '/plugin/' . esc_attr( $this->slug() ) . '/active/' ), __( 'Active Topics', 'wporg-forums' ) );
Note: See TracChangeset for help on using the changeset viewer.