Plugin Directory

Changeset 1558084


Ignore:
Timestamp:
12/20/2016 10:08:18 AM (9 years ago)
Author:
jozik
Message:

comp-2242 Updated post availability hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-multilingual/trunk/includes/class.filters.php

    r1558056 r1558084  
    149149    public function remove_wpml_post_availability_hook() {
    150150        if ( !bp_is_blog_page() ) {
    151             global $icl_language_switcher;
    152             remove_filter( 'the_content',
    153                     array($icl_language_switcher, 'post_availability'), 100 );
     151            add_filter( 'wpml_ls_post_alternative_languages', function(){
     152                return '';
     153            });
    154154        }
    155155    }
Note: See TracChangeset for help on using the changeset viewer.