Changeset 24918 for branches/3.6/wp-includes/comment.php
- Timestamp:
- 07/31/2013 06:53:06 AM (11 years ago)
- Location:
- branches/3.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.6
-
branches/3.6/wp-includes/comment.php
r24713 r24918 1659 1659 return false; 1660 1660 1661 $response = wp_ remote_head( $url, array( 'timeout' => 2, 'httpversion' => '1.0', 'reject_unsafe_urls' => true) );1661 $response = wp_safe_remote_head( $url, array( 'timeout' => 2, 'httpversion' => '1.0' ) ); 1662 1662 1663 1663 if ( is_wp_error( $response ) ) … … 1672 1672 1673 1673 // Now do a GET since we're going to look in the html headers (and we're sure it's not a binary file) 1674 $response = wp_ remote_get( $url, array( 'timeout' => 2, 'httpversion' => '1.0', 'reject_unsafe_urls' => true) );1674 $response = wp_safe_remote_get( $url, array( 'timeout' => 2, 'httpversion' => '1.0' ) ); 1675 1675 1676 1676 if ( is_wp_error( $response ) ) … … 1907 1907 $options = array(); 1908 1908 $options['timeout'] = 4; 1909 $options['reject_unsafe_urls'] = true;1910 1909 $options['body'] = array( 1911 1910 'title' => $title, … … 1915 1914 ); 1916 1915 1917 $response = wp_ remote_post($trackback_url, $options);1916 $response = wp_safe_remote_post( $trackback_url, $options ); 1918 1917 1919 1918 if ( is_wp_error( $response ) )
Note: See TracChangeset
for help on using the changeset viewer.