WordPress.org

Making WordPress.org

Changeset 10263


Ignore:
Timestamp:
09/16/2020 03:36:58 AM (15 months ago)
Author:
dd32
Message:

Developer theme: Search pages don't have a sidebar, don't output the menu toggle.

Fixes #5440.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/header.php

    r9484 r10263  
    1414
    1515<header id="masthead" class="site-header<?php if ( is_front_page() ) { echo ' home'; } ?>" role="banner">
    16     <?php if ( function_exists( 'wporg_is_handbook' ) && wporg_is_handbook() ) : ?>
    17     <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php _e( 'Menu', 'wporg' ); ?></strong></a>
     16    <?php if ( function_exists( 'wporg_is_handbook' ) && wporg_is_handbook() && ! is_search() ) : ?>
     17        <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php _e( 'Menu', 'wporg' ); ?></strong></a>
    1818    <?php endif; ?>
    1919    <div class="site-branding">
Note: See TracChangeset for help on using the changeset viewer.