Make WordPress Core

Ticket #37007: 37007.diff

File 37007.diff, 491 bytes (added by dshanske, 8 years ago)

Add functionality to disable trackback processing

  • src/wp-trackback.php

    diff --git a/src/wp-trackback.php b/src/wp-trackback.php
    index 3d21104..7eecabc 100644
    a b function trackback_response($error = 0, $error_message = '') { 
    4141        }
    4242}
    4343
     44/**
     45* Fires before the trackback is triggered to allow for disabling trackbacks
     46* or a function to act as the handler.
     47*
     48* @since 4.6.0
     49*
     50*/
     51do_action( 'trackback_handler' );
     52
     53
    4454// Trackback is done by a POST.
    4555$request_array = 'HTTP_POST_VARS';
    4656