WordPress.org

Making WordPress.org

Changeset 4249


Ignore:
Timestamp:
10/15/2016 03:23:00 PM (21 months ago)
Author:
ocean90
Message:

WP i18n teams: Change priority for link_locales.

The o2 checklist module adds raw content to a data attribute. WP_I18n_Teams::link_locales() needs to be improved to ignore content in HTML attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/wp-i18n-teams.php

    r4133 r4249  
    2222        add_shortcode( 'wp-locales',      array( $this, 'wp_locales' ) );
    2323
    24         add_filter( 'the_content',  array( $this, 'link_locales' ) );
    25         add_filter( 'comment_text', array( $this, 'link_locales' ) );
     24        add_filter( 'the_content',  array( $this, 'link_locales' ), 0 );
     25        add_filter( 'comment_text', array( $this, 'link_locales' ), 0 );
    2626    }
    2727
Note: See TracChangeset for help on using the changeset viewer.