Making WordPress.org


Ignore:
Timestamp:
12/17/2020 12:13:25 AM (4 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/49a011b0d85dcf472f0c0d97aa138f5c14d40a90...2b9e66afc2060e7e6c9ae0a861779c83e35d82eb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-archive-search.php

    r10438 r10528  
    1111}
    1212$search_label = get_post_type_object( $pt )->labels->search_items ?? '';
     13
     14$form_action = get_post_type_archive_link( $pt );
    1315?>
    1416<div class="search-form--is-inline search-form--is-muted search-form--has-border search-form--has-medium-text">
    15     <form role="search" method="get" class="search-form">
    16         <label for="archive-search" class="screen-reader-text"><?php echo esc_html( _x( 'Search for:', 'label', 'wporg-learn' ) ); ?></label>
    17         <input type="search" id="archive-search" class="search-field" placeholder="<?php echo esc_attr( $search_label ); ?>" value="<?php echo esc_attr( $search_query ); ?>" name="search" />
     17    <form role="search" method="get" class="search-form" action="<?php echo esc_attr( $form_action ); ?>">
     18        <label for="archive-search" class="screen-reader-text">
     19            <?php echo esc_html( _x( 'Search for:', 'label', 'wporg-learn' ) ); ?>
     20        </label>
     21        <input
     22            type="search"
     23            id="archive-search"
     24            class="search-field"
     25            placeholder="<?php echo esc_attr( $search_label ); ?>"
     26            value="<?php echo esc_attr( $search_query ); ?>"
     27            name="search"
     28        />
    1829        <button class="button button-primary button-search">
    1930            <i class="dashicons dashicons-search"></i>
Note: See TracChangeset for help on using the changeset viewer.