Make WordPress Core

Ticket #43536: 43536.1.diff

File 43536.1.diff, 1.2 KB (added by sabernhardt, 2 years ago)

only adding body classes

  • src/wp-activate.php

     
    117117add_action( 'wp_head', 'wp_strict_cross_origin_referrer' );
    118118add_filter( 'wp_robots', 'wp_robots_sensitive_page' );
    119119
     120/**
     121 * Adds a class to the body element.
     122 *
     123 * @since 6.1.0
     124 */
     125function wpmu_activate_body_class( $classes ) {
     126        $classes[] = 'wp-activate';
     127        return $classes;
     128}
     129add_action( 'body_class', 'wpmu_activate_body_class' );
     130
    120131get_header( 'wp-activate' );
    121132
    122133$blog_details = get_blog_details();
  • src/wp-signup.php

     
    7474        </style>
    7575        <?php
    7676}
     77add_action( 'wp_head', 'wpmu_signup_stylesheet' );
    7778
    78 add_action( 'wp_head', 'wpmu_signup_stylesheet' );
     79/**
     80 * Adds a class to the body element.
     81 *
     82 * @since 6.1.0
     83 */
     84function wpmu_signup_body_class( $classes ) {
     85        $classes[] = 'wp-signup';
     86        return $classes;
     87}
     88add_action( 'body_class', 'wpmu_signup_body_class' );
     89
    7990get_header( 'wp-signup' );
    8091
    8192/**