Making WordPress.org

Changeset 10667


Ignore:
Timestamp:
02/12/2021 02:53:17 AM (4 years ago)
Author:
dd32
Message:

o2 Comments Following: Make sure the link to follow comments includes a trailing slash.

See #5609.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/class-o2-follow.php

    r9329 r10667  
    230230            }
    231231
    232             $link = add_query_arg( $query_args, home_url( '', is_ssl() ? 'https' : 'http' ) );
     232            $link = add_query_arg( $query_args, home_url( '/', is_ssl() ? 'https' : 'http' ) );
    233233            $link = wp_nonce_url( $link, 'post-comment-subscribe' );
    234234
     
    252252     */
    253253    public function check_post_for_subscription( $post_id, $message ) {
    254         if ( $message->isFollowing ) {
     254        if ( ! empty( $message->isFollowing ) ) {
    255255            $this->subscribe_to_comments( $post_id );
    256256        }
Note: See TracChangeset for help on using the changeset viewer.