Making WordPress.org

Changeset 8412


Ignore:
Timestamp:
03/08/2019 04:36:10 AM (6 years ago)
Author:
dd32
Message:

Pligin Directory: i18n Import: Attempt to fix the priority setting for imported readme strings.

Apparently this broke 3 years ago shortly after being introduced in [3507] + [3549].

See #4252.

File:
1 edited

Legend:

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

    r6287 r8412  
    116116     *
    117117     * @param string $project       GP project slug to import to
    118      * @param string $branch        GP project branch to import to (dev|stable)
     118     * @param string $branch        GP project branch to import to (dev|stable)-readme
    119119     * @param string $file          Path to POT file
    120120     * @param array  $str_priorities GP string priorities
     
    131131        }
    132132
    133         // @todo: Fix this.
    134         $gp_branch_id = Plugin_I18n::instance()->get_gp_branch_id( $project, "{$branch}-readme" );
     133        // @todo: Make the `glotpress import-originals` CLI command handle this.
     134        $gp_branch_id = Plugin_I18n::instance()->get_gp_branch_id( $project, $branch );
    135135        if ( $gp_branch_id ) {
    136136            foreach ( $str_priorities as $str => $prio ) {
Note: See TracChangeset for help on using the changeset viewer.