Changeset 63207 for trunk/src/wp-includes/comment.php
- Timestamp:
- 08/12/2026 11:06:15 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r63036 r63207 21 21 * approved. 22 22 * 23 * Pingbacks originating from th is site are automatically approved, as the link24 * they report was created by someone who can already publish here.23 * Pingbacks originating from the same site are automatically approved, as the 24 * link they report was created by someone who can already publish here. 25 25 * 26 26 * If all checks pass, the function will return true. 27 27 * 28 28 * @since 1.2.0 29 * @since 7. 2.0 Pingbacks from thissite are no longer held for moderation.29 * @since 7.1.0 Pingbacks from the same site are no longer held for moderation. 30 30 * 31 31 * @global wpdb $wpdb WordPress database abstraction object. … … 184 184 * Filters whether a pingback is approved without being held for moderation. 185 185 * 186 * Defaults to true for pingbacks originating from a published post on th is186 * Defaults to true for pingbacks originating from a published post on the same 187 187 * site, and false for every other pingback. Trackbacks are never considered, 188 188 * as they cannot be verified. 189 189 * 190 * @since 7. 2.0190 * @since 7.1.0 191 191 * 192 * @param bool $approve_pingback Whether to a pprove the pingback.192 * @param bool $approve_pingback Whether to auto-approve the pingback. 193 193 * @param int $source_id ID of the post on this site the pingback 194 194 * originated from, or 0 if it came from elsewhere. 195 195 * @param string $url The URL the pingback was sent from. 196 196 */ 197 return (bool) apply_filters( ' auto_approve_pingback', $approve_pingback, $source_id, $url );197 return (bool) apply_filters( 'wp_auto_approve_ping', $approve_pingback, $source_id, $url ); 198 198 } else { 199 199 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)