Make WordPress Core

Ticket #56791: 56791-_filter_query_attachment_filenames-fix-incorrect-dep.patch

File 56791-_filter_query_attachment_filenames-fix-incorrect-dep.patch, 1.1 KB (added by jrf, 17 months ago)

Fix incorrect deprecation version number

  • src/wp-includes/deprecated.php

    From ccc63b8b26b32993a1efd6de399522621ecc3c07 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Sat, 26 Nov 2022 16:20:56 +0100
    Subject: [PATCH] _filter_query_attachment_filenames: fix incorrect deprecation
     version
    
    Ref: https://core.trac.wordpress.org/changeset/54524
    ---
     src/wp-includes/deprecated.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php
    index 8f41b13038..26be922a77 100644
    a b function global_terms_enabled() { 
    45244524 * @return array The unmodified clauses.
    45254525 */
    45264526function _filter_query_attachment_filenames( $clauses ) {
    4527         _deprecated_function( __FUNCTION__, '4.9.9', 'add_filter( "wp_allow_query_attachment_by_filename", "__return_true" )' );
     4527        _deprecated_function( __FUNCTION__, '6.0.3', 'add_filter( "wp_allow_query_attachment_by_filename", "__return_true" )' );
    45284528        remove_filter( 'posts_clauses', __FUNCTION__ );
    45294529        return $clauses;
    45304530}