Make WordPress Core

Ticket #15018: wp-includes-functions-meta-filter.patch

File wp-includes-functions-meta-filter.patch, 525 bytes (added by sc0ttkclark, 14 years ago)

Initial Patch including the new filter

  • functions.php

     
    42724272function _wp_meta_sql( $queries, $primary_table, $primary_id_column, $meta_table, $meta_id_column ) {
    42734273        global $wpdb;
    42744274
     4275    $check = apply_filters('_wp_meta_sql', null, $queries, $primary_table, $primary_id_column, $meta_table, $meta_id_column);
     4276    if ( null !== $check )
     4277        return $check;
     4278
    42754279        $clauses = array();
    42764280
    42774281        $join = '';