@@ -3170,7 +3170,7 @@ function generic_ping( $post_id = 0 ) {
31703170 * notifications, as well as incoming pingbacks and trackbacks) are disabled
31713171 * for non-production environments ('local', 'development', 'staging').
31723172 *
3173- * @since 6.9 .0
3173+ * @since 7.1 .0
31743174 *
31753175 * @return bool True if pings should be disabled, false otherwise.
31763176 */
@@ -3184,7 +3184,7 @@ function wp_should_disable_pings_for_environment() {
31843184 * Returning false re-enables pings in non-production environments.
31853185 * Returning true disables pings even in production.
31863186 *
3187- * @since 6.9 .0
3187+ * @since 7.1 .0
31883188 *
31893189 * @param bool $should_disable Whether pings should be disabled. Default true
31903190 * for non-production environments, false for production.
@@ -3200,7 +3200,7 @@ function wp_should_disable_pings_for_environment() {
32003200 * Hooked to `do_all_pings` at priority 1 so it runs before the default
32013201 * priority 10 callbacks. Does not remove `do_all_enclosures`.
32023202 *
3203- * @since 6.9 .0
3203+ * @since 7.1 .0
32043204 * @access private
32053205 */
32063206function wp_disable_outgoing_pings_for_environment () {
@@ -3218,22 +3218,19 @@ function wp_disable_outgoing_pings_for_environment() {
32183218 * trackback is processed. Calls `trackback_response()` which sends an XML error
32193219 * response and terminates the request.
32203220 *
3221- * @since 6.9 .0
3221+ * @since 7.1 .0
32223222 * @access private
3223- *
3224- * @param int $post_id Post ID related to the trackback.
3225- * @param string $trackback_url Trackback URL.
32263223 */
3227- function wp_disable_trackback_for_environment ( $ post_id , $ trackback_url ) {
3224+ function wp_disable_trackback_for_environment () {
32283225 if ( wp_should_disable_pings_for_environment () ) {
3229- trackback_response ( 1 , __ ( 'Sorry, trackbacks are closed for this item . ' ) );
3226+ trackback_response ( 1 , __ ( 'Trackbacks are disabled in non-production environments . ' ) );
32303227 }
32313228}
32323229
32333230/**
32343231 * Removes the pingback XML-RPC method in non-production environments.
32353232 *
3236- * @since 6.9 .0
3233+ * @since 7.1 .0
32373234 * @access private
32383235 *
32393236 * @param string[] $methods An array of XML-RPC methods, keyed by their methodName.
0 commit comments