WordPress.org

Make WordPress Core

Ticket #47430: fix_has_filter_check.patch

File fix_has_filter_check.patch, 746 bytes (added by withinboredom, 18 months ago)
  • wp-includes/wp-db.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    20432043                 * Add the filter to remove the placeholder escaper. Uses priority 0, so that anything
    20442044                 * else attached to this filter will receive the query with the placeholder string removed.
    20452045                 */
    2046                 if ( ! has_filter( 'query', array( $this, 'remove_placeholder_escape' ) ) ) {
     2046                if ( false !== has_filter( 'query', array( $this, 'remove_placeholder_escape' ) ) ) {
    20472047                        add_filter( 'query', array( $this, 'remove_placeholder_escape' ), 0 );
    20482048                }
    20492049