Changeset 47617 for trunk/src/wp-includes/comment.php
- Timestamp:
- 04/24/2020 07:26:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r47611 r47617 581 581 */ 582 582 $comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', 30000000 ); 583 $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); 583 584 $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); 585 584 586 setcookie( 'comment_author_' . COOKIEHASH, $comment->comment_author, $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure ); 585 587 setcookie( 'comment_author_email_' . COOKIEHASH, $comment->comment_author_email, $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure ); … … 2853 2855 // If we haven't pung it already and it isn't a link to itself. 2854 2856 if ( ! in_array( $link_test, $pung, true ) && ( url_to_postid( $link_test ) != $post->ID ) 2855 // Also, let's never ping local attachments. 2856 && ! is_local_attachment( $link_test ) ) { 2857 $test = @parse_url( $link_test ); 2857 // Also, let's never ping local attachments. 2858 && ! is_local_attachment( $link_test ) 2859 ) { 2860 $test = parse_url( $link_test ); 2858 2861 if ( $test ) { 2859 2862 if ( isset( $test['query'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.