WordPress.org

Make WordPress Core

Ticket #48061: 48061.diff

File 48061.diff, 523 bytes (added by johnbillion, 8 weeks ago)
  • src/wp-includes/class-wp-query.php

    diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php
    index 295b93c837..ec19d62731 100644
    a b class WP_Query { 
    16951695                $this->is_404 = true;
    16961696
    16971697                $this->is_feed = $is_feed;
     1698
     1699                /**
     1700                 * Fires after a 404 is triggered.
     1701                 *
     1702                 * @since x.x.x
     1703                 *
     1704                 * @param WP_Query $this The WP_Query instance (passed by reference).
     1705                 */
     1706                do_action_ref_array( 'set_404', array( $this ) );
    16981707        }
    16991708
    17001709        /**