Making WordPress.org

Changeset 9291


Ignore:
Timestamp:
11/24/2019 01:39:10 PM (5 years ago)
Author:
ocean90
Message:

Translate: Change label of filter submit button.

Fixes #4588.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php

    r8523 r9291  
    9797        <input type="hidden" name="page" value="1">
    9898
    99         <?php if ( 'waiting' === $project->slug && is_user_logged_in() ) { ?>
     99        <?php
     100        $filter_count = 0;
     101
     102        if ( 'waiting' === $project->slug && is_user_logged_in() ) {
     103            $filter_count++;
     104            ?>
    100105            <input id="filter-without-editors" type="checkbox" name="without-editors" value="1"<?php checked( isset( $_GET['without-editors'] ) ); ?>>
    101106            <label for="filter-without-editors">Limit to projects without editors</label>
    102107            <span class="filter-sep" aria-hidden="true">|</span>
    103         <?php } ?>
    104 
     108            <?php
     109        }
     110        ?>
     111
     112        <?php
     113        $filter_count++;
     114        ?>
    105115        <label for="filter">Filter:</label>
    106116        <select id="filter" name="filter">
     
    130140            ?>
    131141        </select>
    132         <button type="submit">Submit</button>
     142
     143        <button type="submit"><?php echo ( 1 === $filter_count ? 'Apply Filter' : 'Apply Filters' ); ?></button>
    133144    </form>
    134145</div>
Note: See TracChangeset for help on using the changeset viewer.