WordPress.org

Plugin Directory

Changeset 587041


Ignore:
Timestamp:
08/18/12 03:14:59 (20 months ago)
Author:
tomauger
Message:

parse_query is actually an action

Location:
valz-display-query-filters/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • valz-display-query-filters/trunk/readme.txt

    r586658 r587041  
    3636== Changelog == 
    3737 
     38= 0.2 = 
     39* parse_query is actually and action. Updated accordingly. 
     40 
    3841= 0.1 = 
    3942* Initial release prior to WordCamp Montreal 2012 
  • valz-display-query-filters/trunk/valz_display_query_filters.php

    r586658 r587041  
    3232        add_action( 'parse_request', array( $this, 'parse_request_action' ) ); 
    3333        add_filter( 'query_string', array( $this, 'query_string_filter' ) ); 
    34         add_filter( 'parse_query', array( $this, 'parse_query_filter' ) ); 
     34        add_action( 'parse_query', array( $this, 'parse_query_action' ) ); 
    3535        add_filter( 'pre_get_posts', array( $this, 'pre_get_posts_action' ) ); 
    3636        add_filter( 'posts_search', array( $this, 'posts_search_filter' ), 10, 2 ); 
     
    9292     * @return /WP_Query 
    9393     */ 
    94     function parse_query_filter( $wp_query_object ){ 
     94    function parse_query_action( $wp_query_object ){ 
    9595        echo '<h1>parse_query</h1>'; 
    9696        print_r( $wp_query_object ); 
    97  
    98         return $wp_query_object; 
    9997    } 
    10098 
Note: See TracChangeset for help on using the changeset viewer.