Making WordPress.org


Ignore:
Timestamp:
01/04/2016 03:51:43 PM (11 years ago)
Author:
iandunn
Message:

WordCamp JSON API: Remove $accepted_args param from remove_filter() calls.

Only add_filter() accepts the $accepted_args parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-json-api.php

    r2245 r2246  
    199199
    200200        // Unhook this callback before making any other WP_JSON_Posts::get_posts() calls, to avoid infinite recursion
    201         remove_filter( 'json_prepare_post', 'wcorg_json_embed_related_posts', 999, 3 );
     201        remove_filter( 'json_prepare_post', 'wcorg_json_embed_related_posts', 999 );
    202202
    203203        switch( $prepared_post['type'] ) {
    … …  
    303303        global $wp_json_media;
    304304
    305         remove_filter( 'json_prepare_post', array( $wp_json_media, 'add_thumbnail_data' ), 10, 3 );
     305        remove_filter( 'json_prepare_post', array( $wp_json_media, 'add_thumbnail_data' ), 10 );
    306306}
    307307
Note: See TracChangeset for help on using the changeset viewer.