Make WordPress Core


Ignore:
Timestamp:
04/14/2026 11:37:02 AM (5 months ago)
Author:
ramonopoly
Message:

REVERT r62231: Disable pings/trackbacks for local, development, and staging environments

Commits to trunk have been paused for 7.0.

See: https://make.wordpress.org/core/2026/04/02/the-path-forward-for-wordpress-7-0/

Props arcangelini, cagrimmett, ramonopoly, tyxla, ocean90, khushipatel15.

Follow-up to [64837].

See #64837.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r62231 r62233  
    422422add_action( 'do_all_pings', 'do_all_trackbacks', 10, 0 );
    423423add_action( 'do_all_pings', 'generic_ping', 10, 0 );
    424 
    425 // Disable pings (pingbacks, trackbacks, and ping service notifications) in non-production environments.
    426 add_action( 'do_all_pings', 'wp_maybe_disable_outgoing_pings_for_environment', 1, 0 );
    427 add_action( 'pre_trackback_post', 'wp_maybe_disable_trackback_for_environment', 10, 0 );
    428 add_filter( 'xmlrpc_methods', 'wp_maybe_disable_xmlrpc_pingback_for_environment' );
    429 
    430424add_action( 'do_robots', 'do_robots' );
    431425add_action( 'do_favicon', 'do_favicon' );
Note: See TracChangeset for help on using the changeset viewer.