Make WordPress Core

Ticket #43536: 43536.diff

File 43536.diff, 1.9 KB (added by sabernhardt, 3 years ago)
  • src/wp-activate.php

     
    7171// Fix for page title.
    7272$wp_query->is_404 = false;
    7373
     74// Fix page template.
     75$wp_query->is_home = false;
     76
    7477/**
    7578 * Fires before the Site Activation page is loaded.
    7679 *
     
    105108function wpmu_activate_stylesheet() {
    106109        ?>
    107110        <style type="text/css">
     111                .wp-activate-container { width: 90%; margin:0 auto; }
    108112                form { margin-top: 2em; }
    109                 #submit, #key { width: 90%; font-size: 24px; }
     113                #submit, #key { font-size: 24px; }
    110114                #language { margin-top: .5em; }
    111115                .error { background: #f66; }
    112116                span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }
     
    117121add_action( 'wp_head', 'wp_strict_cross_origin_referrer' );
    118122add_filter( 'wp_robots', 'wp_robots_sensitive_page' );
    119123
     124/**
     125 * Adds a class to the body element.
     126 *
     127 * @since 5.9.0
     128 */
     129function wpmu_activate_body_class( $classes ) {
     130        $classes[] = 'wp-activate';
     131        return $classes;
     132}
     133add_action( 'body_class', 'wpmu_activate_body_class' );
     134
    120135get_header( 'wp-activate' );
    121136
    122137$blog_details = get_blog_details();
  • src/wp-signup.php

     
    4242// Fix for page title.
    4343$wp_query->is_404 = false;
    4444
     45// Fix page template.
     46$wp_query->is_home = false;
     47
    4548/**
    4649 * Fires before the Site Signup page is loaded.
    4750 *
     
    7477        </style>
    7578        <?php
    7679}
     80add_action( 'wp_head', 'wpmu_signup_stylesheet' );
    7781
    78 add_action( 'wp_head', 'wpmu_signup_stylesheet' );
     82/**
     83 * Adds a class to the body element.
     84 *
     85 * @since 5.9.0
     86 */
     87function wpmu_signup_body_class( $classes ) {
     88        $classes[] = 'wp-signup';
     89        return $classes;
     90}
     91add_action( 'body_class', 'wpmu_signup_body_class' );
     92
    7993get_header( 'wp-signup' );
    8094
    8195/**