Making WordPress.org


Ignore:
Timestamp:
07/10/2019 11:03:12 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Make/Meetings: Allow filtering the list of meetings by clicking on a team name.

Props mikeschroder, garrett-eclipse, SergeyBiryukov.
Fixes #4595.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php

    r9021 r9037  
    182182            'singular_name'       => _x( 'Meeting', 'Post Type Singular Name', 'wporg' ),
    183183            'menu_name'           => __( 'Meetings', 'wporg' ),
    184             'name_admin_bar'      => __( 'Meetings', 'wporg' ),
     184            'name_admin_bar'      => __( 'Meeting', 'wporg' ),
    185185            'parent_item_colon'   => __( 'Parent Meeting:', 'wporg' ),
    186186            'all_items'           => __( 'All Meetings', 'wporg' ),
     
    492492            $display_more = $query->found_posts - intval( $limit );
    493493            if ( $display_more > 0 ) {
    494                 $out .= $display_count === 0 ? '' : ' <a title="Click to view all meetings for this team" href="/meetings#' . esc_attr( $attr['team'] ) . '">' . sprintf( __( '(+%s more)'), $display_more ) . '</a>';
     494                $out .= $display_count === 0 ? '' : ' <a title="Click to view all meetings for this team" href="/meetings/#' . esc_attr( strtolower( $attr['team'] ) ) . '">' . sprintf( __( '(+%s more)'), $display_more ) . '</a>';
    495495            }
    496496            $out .= '</br>';
Note: See TracChangeset for help on using the changeset viewer.