Making WordPress.org

Changeset 11758


Ignore:
Timestamp:
04/07/2022 05:13:54 PM (2 years ago)
Author:
Otto42
Message:

Make: Main site, wporg-sites-cpt, make it easier to find the make site in question instead of also seeing the hundreds of rosetta sites in the listing. Related to #6262

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-make-sites-cpt/make_sites_cpt.php

    r8945 r11758  
    117117                    <td><select name="make_site_id" id="make_site_id">
    118118                        <option value=""></option>
    119                         <?php foreach ( make_site_get_network_sites() as $value => $label ) : ?>
     119<?php
     120    foreach ( make_site_get_network_sites() as $value => $label ) {
     121       
     122        // skip all the non make blogs, so it's a lot easier to find the right one in the list
     123        if ( strpos( $label, "https://make.wordpress.org" ) === false ) {
     124            continue;
     125        } ?>
    120126                            <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $make_site_id, $value ) ?>><?php echo esc_html( $label ); ?></option>
    121                         <?php endforeach; ?>
     127                        <?php } // endforeach; ?>
    122128                    </select></td>
    123129                </tr>
Note: See TracChangeset for help on using the changeset viewer.