WordPress.org

Make WordPress Core

Ticket #22187: 22187-signup-styles.diff

File 22187-signup-styles.diff, 1.3 KB (added by DrewAPicture, 18 months ago)
  • wp-signup.php

     
    3030// Fix for page title 
    3131$wp_query->is_404 = false; 
    3232 
     33/** 
     34 * Prints styles for front-end Multisite signup pages. 
     35 * 
     36 * The default styles are printed via signup_header which is hooked to wp_head.  
     37 * They can be overloaded by replacing the output on the signup_header action hook. 
     38 * 
     39 * @since 3.0.0 
     40 */ 
    3341function wpmu_signup_stylesheet() { 
    3442        ?> 
    3543        <style type="text/css"> 
     
    5058        <?php 
    5159} 
    5260 
    53 add_action( 'wp_head', 'wpmu_signup_stylesheet' ); 
    5461get_header(); 
    5562 
    5663do_action( 'before_signup_form' ); 
  • wp-includes/default-filters.php

     
    213213add_action( 'wp_print_footer_scripts', '_wp_footer_scripts'                 ); 
    214214add_action( 'init',                'check_theme_switched',            99    ); 
    215215add_action( 'after_switch_theme',  '_wp_sidebars_changed'                   ); 
     216add_action( 'signup_header',       'wpmu_signup_stylesheet'                 ); 
    216217 
    217218if ( isset( $_GET['replytocom'] ) ) 
    218219    add_action( 'wp_head', 'wp_no_robots' );