WordPress.org

Making WordPress.org

Ticket #2847: 2847.2.diff

File 2847.2.diff, 1.3 KB (added by pbiron, 15 months ago)

updated patch

  • inc/template-tags.php

    From ae41d3cc9a40739e6f6a67fcd79c92c9065a601f Mon Sep 17 00:00:00 2001
    From: Paul Biron <paul@sparrowhawkcomputing.com>
    Date: Tue, 10 Jul 2018 10:00:08 -0600
    Subject: [PATCH] correct closing </form> tag for form.archive-filter-form.
    
    ---
     inc/template-tags.php | 7 ++++---
     1 file changed, 4 insertions(+), 3 deletions(-)
    
    diff --git a/inc/template-tags.php b/inc/template-tags.php
    index a9f63a3..f16d7cf 100644
    a b namespace DevHub { 
    579579
    580580                return $change_types;
    581581        }
    582        
     582
    583583        /**
    584584         * Checks if given post type is one of the parsed post types.
    585585         *
    namespace DevHub { 
    17141714                $form .= __( 'Filter by post type:', 'wporg' ) . ' ';
    17151715                $form .= '<select name="post_type[]" id="post-type-archive-filter">';
    17161716                $form .= $options . '</select></label>';
    1717                 $form .= "<input class='shiny-blue' type='submit' value='Filter' /></form>";
    17181717
    17191718                if ( 'wp-parser-since' === $taxonomy ) {
    17201719                        // @todo it might make for a better UX to detect whether there are
    namespace DevHub { 
    17411740                        $form .= '<select name="change_type" id="change-type-archive-filter">';
    17421741                        $form .= $options . '</select></label>';
    17431742                }
    1744                
     1743
     1744                $form .= "<input class='shiny-blue' type='submit' value='Filter' /></form>";
     1745
    17451746                echo $form;
    17461747        }
    17471748