Changeset 57530
- Timestamp:
- 02/04/2024 06:44:02 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r56747 r57530 3175 3175 * @param string $title Title of post. 3176 3176 * @param string $excerpt Excerpt of post. 3177 * @param int $ IDPost ID.3177 * @param int $post_id Post ID. 3178 3178 * @return int|false|void Database query from update. 3179 3179 */ 3180 function trackback( $trackback_url, $title, $excerpt, $ ID) {3180 function trackback( $trackback_url, $title, $excerpt, $post_id ) { 3181 3181 global $wpdb; 3182 3182 … … 3189 3189 $options['body'] = array( 3190 3190 'title' => $title, 3191 'url' => get_permalink( $ ID),3191 'url' => get_permalink( $post_id ), 3192 3192 'blog_name' => get_option( 'blogname' ), 3193 3193 'excerpt' => $excerpt, … … 3200 3200 } 3201 3201 3202 $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET pinged = CONCAT(pinged, '\n', %s) WHERE ID = %d", $trackback_url, $ ID) );3203 return $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s, '')) WHERE ID = %d", $trackback_url, $ ID) );3202 $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET pinged = CONCAT(pinged, '\n', %s) WHERE ID = %d", $trackback_url, $post_id ) ); 3203 return $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s, '')) WHERE ID = %d", $trackback_url, $post_id ) ); 3204 3204 } 3205 3205
Note: See TracChangeset
for help on using the changeset viewer.