Make WordPress Core

Changeset 16106


Ignore:
Timestamp:
10/31/2010 12:21:06 AM (14 years ago)
Author:
scribu
Message:

Add 'get_meta_sql' filter. Props sc0ttkclark for initial patch. Fixes #15018

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class.wp-object-query.php

    r16053 r16106  
    154154            }
    155155            $where .= $wpdb->prepare( " AND CAST($alias.meta_value AS {$meta_type}) {$meta_compare} {$meta_compare_string}", $meta_value );
    156             unset($meta_compare_string);
    157         }
    158 
    159         return compact( 'join', 'where' );
     156
     157            unset( $meta_compare_string );
     158        }
     159
     160        return apply_filters( 'get_meta_sql', compact( 'join', 'where' ), $meta_query, $primary_table, $primary_id_column, $meta_table, $meta_id_column );
    160161    }
    161162
Note: See TracChangeset for help on using the changeset viewer.