Make WordPress Core

Ticket #28573: 28573.diff

File 28573.diff, 526 bytes (added by slobodanmanic, 11 years ago)

I really don't like the fact this has to use $pagenow and specifically check for these two pages, but can't think of cleaner way, as far as I know there are no conditional tags for these pages.

  • functions.php

     
    405405        if ( get_header_image() ) {
    406406                $classes[] = 'header-image';
    407407        } else {
    408                 $classes[] = 'masthead-fixed';
     408                // Checks if not in Multisite signup and activate pages.
     409                if ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ) ) )
     410                        $classes[] = 'masthead-fixed';
    409411        }
    410412
    411413        if ( is_archive() || is_search() || is_home() ) {