WordPress.org

Making WordPress.org

Changeset 3521


Ignore:
Timestamp:
06/21/2016 10:18:11 AM (5 years ago)
Author:
tellyworth
Message:

Plugin directory: fix title translation in [3519]

See #1691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r3519 r3521  
    586586
    587587            foreach ( $locales_to_sync as $locale ) {
    588                 $the_title = $this->translate_post_title( get_the_title( $post_id ), $post_id );
     588                $the_title = Plugin_I18n::instance()->translate( 'title', get_the_title( $post_id ), [ 'post_id' => $post_id ] );
    589589                if ( $the_title && $the_title != get_the_title( $post_id ) ) {
    590590                    $this->i18n_meta[ $post_id ][ 'title_' . $locale ] = $the_title;
Note: See TracChangeset for help on using the changeset viewer.