Fixing linter errors.
- Added Doc comment for parameter "$submenu_file". - Removed space between `empty` and opening parenthesis.
This commit is contained in:
parent
af9e2b1777
commit
c9fc4e721b
|
@ -394,7 +394,9 @@ class WC_Admin_Menus {
|
|||
/**
|
||||
* Highlight the My Subscriptions menu item when on that page
|
||||
*
|
||||
* @param string $parent_file currently opened page.
|
||||
* @param string $submenu_file The submenu file.
|
||||
* @param string $parent_file currently opened page.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function update_menu_highlight( $submenu_file, $parent_file ) {
|
||||
|
|
|
@ -25,7 +25,7 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
|
|||
<input
|
||||
type="text"
|
||||
name="search"
|
||||
value="<?php echo esc_attr( ! empty ( $search ) ? sanitize_text_field( wp_unslash( $search ) ) : '' ); ?>"
|
||||
value="<?php echo esc_attr( ! empty( $search ) ? sanitize_text_field( wp_unslash( $search ) ) : '' ); ?>"
|
||||
placeholder="<?php esc_attr_e( 'Search for extensions', 'woocommerce' ); ?>"
|
||||
/>
|
||||
<button type="submit">
|
||||
|
@ -62,7 +62,7 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
|
|||
|
||||
<div class="wrap">
|
||||
<div class="marketplace-content-wrapper">
|
||||
<?php if ( ! empty ( $search ) ) : ?>
|
||||
<?php if ( ! empty( $search ) ) : ?>
|
||||
<h1 class="search-form-title">
|
||||
<?php // translators: search keyword. ?>
|
||||
<?php printf( esc_html__( 'Search results for "%s"', 'woocommerce' ), esc_html( sanitize_text_field( wp_unslash( $search ) ) ) ); ?>
|
||||
|
|
Loading…
Reference in New Issue