WordPress.org

Making WordPress.org

Ticket #1517: 1517.patch

File 1517.patch, 969 bytes (added by keesiemeijer, 4 years ago)

Use post type "functions" in the reference page itself and use the post types from the query on all other pages

  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/searchform.php

     
    5555                                        $qv_post_type = (array) get_query_var( 'post_type' );
    5656                                ?>
    5757                                        <label><input type="checkbox" name="post_type[]" value="<?php echo esc_attr( $post_type ); ?>"
    58                                         <?php checked( ! is_search() || in_array( 'any', $qv_post_type ) || in_array( $post_type, $qv_post_type ) ); ?> /> <?php echo $label; ?></label>
     58                                        <?php checked( ( is_page( 'reference' )  && ( 'wp-parser-function' === $post_type ) ) || in_array( 'any', $qv_post_type ) || in_array( $post_type, $qv_post_type ) ); ?> /> <?php echo $label; ?></label>
    5959                                <?php } ?>
    6060                </div>
    6161        </form>