Ticket #43536: 43536.diff
File 43536.diff, 1.9 KB (added by , 3 years ago) |
---|
-
src/wp-activate.php
71 71 // Fix for page title. 72 72 $wp_query->is_404 = false; 73 73 74 // Fix page template. 75 $wp_query->is_home = false; 76 74 77 /** 75 78 * Fires before the Site Activation page is loaded. 76 79 * … … 105 108 function wpmu_activate_stylesheet() { 106 109 ?> 107 110 <style type="text/css"> 111 .wp-activate-container { width: 90%; margin:0 auto; } 108 112 form { margin-top: 2em; } 109 #submit, #key { width: 90%;font-size: 24px; }113 #submit, #key { font-size: 24px; } 110 114 #language { margin-top: .5em; } 111 115 .error { background: #f66; } 112 116 span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; } … … 117 121 add_action( 'wp_head', 'wp_strict_cross_origin_referrer' ); 118 122 add_filter( 'wp_robots', 'wp_robots_sensitive_page' ); 119 123 124 /** 125 * Adds a class to the body element. 126 * 127 * @since 5.9.0 128 */ 129 function wpmu_activate_body_class( $classes ) { 130 $classes[] = 'wp-activate'; 131 return $classes; 132 } 133 add_action( 'body_class', 'wpmu_activate_body_class' ); 134 120 135 get_header( 'wp-activate' ); 121 136 122 137 $blog_details = get_blog_details(); -
src/wp-signup.php
42 42 // Fix for page title. 43 43 $wp_query->is_404 = false; 44 44 45 // Fix page template. 46 $wp_query->is_home = false; 47 45 48 /** 46 49 * Fires before the Site Signup page is loaded. 47 50 * … … 74 77 </style> 75 78 <?php 76 79 } 80 add_action( 'wp_head', 'wpmu_signup_stylesheet' ); 77 81 78 add_action( 'wp_head', 'wpmu_signup_stylesheet' ); 82 /** 83 * Adds a class to the body element. 84 * 85 * @since 5.9.0 86 */ 87 function wpmu_signup_body_class( $classes ) { 88 $classes[] = 'wp-signup'; 89 return $classes; 90 } 91 add_action( 'body_class', 'wpmu_signup_body_class' ); 92 79 93 get_header( 'wp-signup' ); 80 94 81 95 /**