Making WordPress.org


Ignore:
Timestamp:
08/01/2019 03:25:05 AM (5 years ago)
Author:
dd32
Message:

Make/Meetings: Remove an undefined variable that wasn't currently doing anything.

Fixes a PHP Notice Undefined variable: display_count

File:
1 edited

Legend:

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

    r9078 r9088  
    490490                $slack_channel = sanitize_title( $match[1] );
    491491            }
    492    
     492
    493493            $out .= '<p>';
    494494            $out .= esc_html( $attr['before'] );
     
    496496            $display_more = $query->found_posts - intval( $limit );
    497497            if ( $display_more > 0 ) {
    498                 $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>';
     498                $out .= ' <a title="Click to view all meetings for this team" href="/meetings/#' . esc_attr( strtolower( $attr['team'] ) ) . '">' . sprintf( __( '(+%s more)'), $display_more ) . '</a>';
    499499            }
    500500            $out .= '</br>';
Note: See TracChangeset for help on using the changeset viewer.