Ticket #8365: 8365.patch
File 8365.patch, 22.2 KB (added by , 4 years ago) |
---|
-
src/bp-blogs/bp-blogs-functions.php
diff --git src/bp-blogs/bp-blogs-functions.php src/bp-blogs/bp-blogs-functions.php index 717000384..8b7e5f237 100644
function bp_blogs_restore_data( $user_id = 0 ) { 1476 1476 } 1477 1477 } 1478 1478 add_action( 'bp_make_ham_user', 'bp_blogs_restore_data', 10, 1 ); 1479 1480 /** 1481 * Checks whether blog creation is enabled. 1482 * 1483 * Returns true when blog creation is enabled for logged-in users only, or 1484 * when it's enabled for new registrations. 1485 * 1486 * @since 1.0.0 1487 * @since 7.0.0 The function has been moved into `bp-blogs/bp-blogs-functions.php`. 1488 * 1489 * @return bool True if blog registration is enabled. 1490 */ 1491 function bp_blog_signup_enabled() { 1492 $bp = buddypress(); 1493 $retval = true; 1494 $active_signup = 'all'; 1495 1496 if ( isset( $bp->site_options['registration'] ) ) { 1497 $active_signup = $bp->site_options['registration']; 1498 } 1499 1500 /** 1501 * Filters whether or not blog creation is enabled. 1502 * 1503 * Return "all", "none", "blog" or "user". 1504 * 1505 * @since 1.0.0 1506 * 1507 * @param string $active_signup Value of the registration site option creation status. 1508 */ 1509 $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); 1510 1511 if ( 'none' === $active_signup || 'user' === $active_signup ) { 1512 $retval = false; 1513 } 1514 1515 return $retval; 1516 } 1517 1518 /** 1519 * Returns the Blog signup's submitted vars. 1520 * 1521 * @since 7.0.0 1522 * 1523 * @return array An associative array containing the Blog signup's submitted vars. 1524 */ 1525 function bp_blogs_get_signup_form_submitted_vars() { 1526 $exprected_vars = array( 1527 'blogname' => '', 1528 'blog_title' => '', 1529 'blog_public' => 0, 1530 ); 1531 1532 $submitted_vars = wp_parse_args( $_POST, $exprected_vars ); 1533 1534 return array_map( 'wp_unslash', array_intersect_key( $submitted_vars, $exprected_vars ) ); 1535 } 1536 1537 /** 1538 * Validate a blog creation submission. 1539 * 1540 * Essentially, a wrapper for {@link wpmu_validate_blog_signup()}. 1541 * 1542 * @since 1.0.0 1543 * @since 7.0.0 Add the blog_name and blog_title parameters. 1544 * The function has been moved into `bp-blogs/bp-blogs-functions.php`. 1545 * 1546 * @return array Contains the new site data and error messages. 1547 */ 1548 function bp_blogs_validate_blog_form( $blog_name = '', $blog_title = '' ) { 1549 $user = ''; 1550 1551 if ( is_user_logged_in() ) { 1552 $user = wp_get_current_user(); 1553 } 1554 1555 if ( ! $blog_name && ! $blog_title ) { 1556 $submitted_vars = bp_blogs_get_signup_form_submitted_vars(); 1557 1558 if ( array_filter( $submitted_vars ) ) { 1559 $blog_name = $submitted_vars['blogname']; 1560 $blog_title = $submitted_vars['blog_title']; 1561 } 1562 } 1563 1564 return wpmu_validate_blog_signup( $blog_name, $blog_title, $user ); 1565 } -
src/bp-blogs/bp-blogs-template.php
diff --git src/bp-blogs/bp-blogs-template.php src/bp-blogs/bp-blogs-template.php index 65e044a42..eb8b1526d 100644
function bp_total_blog_count_for_user( $user_id = 0 ) { 1001 1001 1002 1002 /** Blog Registration ********************************************************/ 1003 1003 1004 /**1005 * Checks whether blog creation is enabled.1006 *1007 * Returns true when blog creation is enabled for logged-in users only, or1008 * when it's enabled for new registrations.1009 *1010 * @return bool True if blog registration is enabled.1011 */1012 function bp_blog_signup_enabled() {1013 $bp = buddypress();1014 1015 $active_signup = isset( $bp->site_options['registration'] )1016 ? $bp->site_options['registration']1017 : 'all';1018 1019 /**1020 * Filters whether or not blog creation is enabled.1021 *1022 * Return "all", "none", "blog" or "user".1023 *1024 * @since 1.0.01025 *1026 * @param string $active_signup Value of the registration site option creation status.1027 */1028 $active_signup = apply_filters( 'wpmu_active_signup', $active_signup );1029 1030 if ( 'none' == $active_signup || 'user' == $active_signup )1031 return false;1032 1033 return true;1034 }1035 1036 1004 /** 1037 1005 * Output the wrapper markup for the blog signup form. 1038 1006 * 1007 * @since 1.0.0 1008 * 1039 1009 * @param string $blogname Optional. The default blog name (path or domain). 1040 1010 * @param string $blog_title Optional. The default blog title. 1041 1011 * @param string|WP_Error $errors Optional. The WP_Error object returned by a previous 1042 1012 * submission attempt. 1043 1013 */ 1044 function bp_show_blog_signup_form( $blogname = '', $blog_title = '', $errors = '') {1045 global $current_user;1014 function bp_show_blog_signup_form( $blogname = '', $blog_title = '', $errors = '' ) { 1015 $blog_id = bp_blogs_validate_blog_signup(); 1046 1016 1047 if ( isset($_POST['submit']) ) { 1048 bp_blogs_validate_blog_signup(); 1049 } else { 1050 if ( ! is_wp_error($errors) ) { 1017 // Display the signup form. 1018 if ( false === $blog_id || is_wp_error( $blog_id ) ) { 1019 if ( is_wp_error( $blog_id ) ) { 1020 $errors = $blog_id; 1021 } else { 1051 1022 $errors = new WP_Error(); 1052 1023 } 1053 1024 … … function bp_show_blog_signup_form($blogname = '', $blog_title = '', $errors = '' 1063 1034 * } 1064 1035 */ 1065 1036 $filtered_results = apply_filters('signup_another_blog_init', array('blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors )); 1066 $blogname = $filtered_results['blogname'];1067 $blog_title = $filtered_results['blog_title'];1068 $errors = $filtered_results['errors'];1037 $blogname = $filtered_results['blogname']; 1038 $blog_title = $filtered_results['blog_title']; 1039 $errors = $filtered_results['errors']; 1069 1040 1070 1041 if ( $errors->get_error_code() ) { 1071 echo "<p>" . __('There was a problem; please correct the form below and try again.', 'buddypress') . "</p>"; 1042 if ( in_array( $errors->get_error_code(), array( 'blogname', 'blog_title' ), true ) ) { 1043 printf( 1044 '<p class="error">%s</p>', 1045 esc_html__( 'There was a problem; please correct the form below and try again.', 'buddypress' ) 1046 ); 1047 } else { 1048 printf( 1049 '<p class="error">%s</p>', 1050 $errors->get_error_message() 1051 ); 1052 } 1072 1053 } 1054 1055 printf( 1056 '<p>%1$s <strong>%2$s</strong>. %3$s</p>', 1057 esc_html__( 'By filling out the form below, you can', 'buddypress' ), 1058 esc_html__( 'add a site to your account', 'buddypress' ), 1059 esc_html__( 'There is no limit to the number of sites that you can have, so create to your heart’s content, but blog responsibly!', 'buddypress' ) 1060 ); 1073 1061 ?> 1074 <p><?php printf(__("By filling out the form below, you can <strong>add a site to your account</strong>. There is no limit to the number of sites that you can have, so create to your heart's content, but blog responsibly!", 'buddypress'), $current_user->display_name) ?></p>1075 1062 1076 <p><?php _e("If you’re not going to use a great domain, leave it for a new user. Now have at it!", 'buddypress') ?></p> 1063 <p> 1064 <?php esc_html_e( 'If you’re not going to use a great domain, leave it for a new user. Now have at it!', 'buddypress' ); ?> 1065 </p> 1077 1066 1078 1067 <form class="standard-form" id="setupform" method="post" action=""> 1079 1068 … … function bp_show_blog_signup_form($blogname = '', $blog_title = '', $errors = '' 1087 1076 */ 1088 1077 do_action( 'signup_hidden_fields' ); ?> 1089 1078 1090 <?php bp_blogs_signup_blog( $blogname, $blog_title, $errors); ?>1079 <?php bp_blogs_signup_blog( $blogname, $blog_title, $errors ); ?> 1091 1080 <p> 1092 <input id="submit" type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site', 'buddypress')?>" />1081 <input id="submit" type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site', 'buddypress' ); ?>" /> 1093 1082 </p> 1094 1083 1095 1084 <?php wp_nonce_field( 'bp_blog_signup_form' ) ?> 1096 1085 </form> 1097 1086 <?php 1087 1088 // Display the confirmation form. 1089 } elseif ( is_numeric( $blog_id ) ) { 1090 // Validate the site. 1091 $site = get_site( $blog_id ); 1092 1093 if ( isset( $site->id ) && $site->id ) { 1094 $current_user = wp_get_current_user(); 1095 1096 bp_blogs_confirm_blog_signup( 1097 $site->domain, $site->path, 1098 $site->blogname, 1099 $current_user->user_login, 1100 $current_user->user_email, 1101 '', 1102 $site->id 1103 ); 1104 } 1098 1105 } 1099 1106 } 1100 1107 1101 1108 /** 1102 1109 * Output the input fields for the blog creation form. 1103 1110 * 1111 * @since 1.0.0 1112 * 1104 1113 * @param string $blogname Optional. The default blog name (path or domain). 1105 1114 * @param string $blog_title Optional. The default blog title. 1106 1115 * @param string|WP_Error $errors Optional. The WP_Error object returned by a previous 1107 1116 * submission attempt. 1108 1117 */ 1109 1118 function bp_blogs_signup_blog( $blogname = '', $blog_title = '', $errors = '' ) { 1110 global $current_site;1119 $current_site = get_current_site(); 1111 1120 1112 // Blog name. 1113 if( !is_subdomain_install() ) 1114 echo '<label for="blogname">' . __('Site Name:', 'buddypress') . '</label>'; 1115 else 1116 echo '<label for="blogname">' . __('Site Domain:', 'buddypress') . '</label>'; 1121 if ( ! $blogname && ! $blog_title ) { 1122 $submitted_vars = bp_blogs_get_signup_form_submitted_vars(); 1117 1123 1118 if ( $errmsg = $errors->get_error_message('blogname') ) { ?> 1119 1120 <p class="error"><?php echo $errmsg ?></p> 1124 if ( array_filter( $submitted_vars ) ) { 1125 $blogname = $submitted_vars['blogname']; 1126 $blog_title = $submitted_vars['blog_title']; 1127 } 1128 } 1129 ?> 1121 1130 1122 <?php } 1131 <p> 1132 <?php 1133 // Blog name. 1134 if ( ! is_subdomain_install() ) { 1135 printf( '<label for="blogname">%s</label>', esc_html__( 'Site Name:', 'buddypress' ) ); 1136 } else { 1137 printf( '<label for="blogname">%s</label>', esc_html__( 'Site Domain:', 'buddypress' ) ); 1138 } 1123 1139 1124 if ( !is_subdomain_install() ) 1125 echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span> <input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="63" /><br />'; 1126 else 1127 echo '<input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="63" ' . bp_get_form_field_attributes( 'blogname' ) . '/> <span class="suffix_address">.' . bp_signup_get_subdomain_base() . '</span><br />'; 1140 if ( ! is_subdomain_install() ) { 1141 printf( 1142 '<span class="prefix_address">%1$s</span> <input name="blogname" type="text" id="blogname" value="%2$s" maxlength="63" style="width: auto!important" /><br />', 1143 esc_html( $current_site->domain . $current_site->path ), 1144 esc_attr( $blogname ) 1145 ); 1146 } else { 1147 printf( 1148 '<input name="blogname" type="text" id="blogname" value="%1$s" maxlength="63" style="width: auto!important" %2$s/> <span class="suffix_address">.%3$s</span><br />', 1149 esc_attr( $blogname ), 1150 bp_get_form_field_attributes( 'blogname' ), 1151 bp_signup_get_subdomain_base() 1152 ); 1153 } 1154 if ( is_wp_error( $errors ) && $errors->get_error_message( 'blogname' ) ) { 1155 printf( '<div class="error">%s</div>', $errors->get_error_message( 'blogname' ) ); 1156 } 1157 ?> 1158 </p> 1128 1159 1129 if ( !is_user_logged_in() ) { 1130 print '(<strong>' . __( 'Your address will be ' , 'buddypress'); 1160 <?php 1161 if ( ! is_user_logged_in() ) { 1162 $url = sprintf( 1163 /* translators: %s is the site domain and path. */ 1164 __( 'domain.%s' , 'buddypress' ), 1165 $current_site->domain . $current_site->path 1166 ); 1131 1167 1132 if ( !is_subdomain_install() ) { 1133 print $current_site->domain . $current_site->path . __( 'blogname' , 'buddypress'); 1134 } else { 1135 print __( 'domain.' , 'buddypress') . $current_site->domain . $current_site->path; 1168 if ( ! is_subdomain_install() ) { 1169 $url = sprintf( 1170 /* translators: %s is the site domain and path. */ 1171 __( '%sblogname' , 'buddypress'), 1172 $current_site->domain . $current_site->path 1173 ); 1136 1174 } 1137 1175 1138 echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)' , 'buddypress') . '</p>'; 1176 printf( 1177 '<p>(<strong>%1$s.</strong> %2$s)</p>', 1178 sprintf( esc_html__( 'Your address will be %s' , 'buddypress' ), $url ), 1179 esc_html__( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!' , 'buddypress' ) 1180 ); 1139 1181 } 1140 1182 1141 1183 // Blog Title. 1142 1184 ?> 1185 <p> 1186 <label for="blog_title"><?php esc_html_e('Site Title:', 'buddypress') ?></label> 1187 <input name="blog_title" type="text" id="blog_title" value="<?php echo esc_html( $blog_title ); ?>" /> 1143 1188 1144 <label for="blog_title"><?php _e('Site Title:', 'buddypress') ?></label> 1189 <?php 1190 if ( is_wp_error( $errors ) && $errors->get_error_message( 'blog_title' ) ) { 1191 printf( '<div class="error">%s</div>', $errors->get_error_message( 'blog_title' ) ); 1192 } 1193 ?> 1194 </p> 1145 1195 1146 < ?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>1196 <fieldset class="create-site"> 1147 1197 1148 < p class="error"><?php echo $errmsg ?></p>1198 <legend class="label"><?php esc_html_e( 'Privacy: I would like my site to appear in search engines, and in public listings around this network', 'buddypress' ) ?></legend> 1149 1199 1150 <?php } 1151 echo '<input name="blog_title" type="text" id="blog_title" value="'.esc_html($blog_title, 1).'" /></p>'; 1152 ?> 1200 <p> 1201 <label class="checkbox" for="blog_public_on"> 1202 <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php checked( ! isset( $_POST['blog_public'] ) || 1 === (int) $_POST['blog_public'] ); ?> /> 1203 <strong><?php esc_html_e( 'Yes' , 'buddypress'); ?></strong> 1204 </label> 1205 </p> 1206 1207 <p> 1208 <label class="checkbox" for="blog_public_off"> 1209 <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php checked( isset( $_POST['blog_public'] ) && 0 === (int) $_POST['blog_public'] ); ?> /> 1210 <strong><?php esc_html_e( 'No' , 'buddypress'); ?></strong> 1211 </label> 1212 </p> 1153 1213 1154 <fieldset class="create-site">1155 <legend class="label"><?php _e('Privacy: I would like my site to appear in search engines, and in public listings around this network', 'buddypress') ?></legend>1156 1157 <label class="checkbox" for="blog_public_on">1158 <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if( !isset( $_POST['blog_public'] ) || '1' == $_POST['blog_public'] ) { ?>checked="checked"<?php } ?> />1159 <strong><?php _e( 'Yes' , 'buddypress'); ?></strong>1160 </label>1161 <label class="checkbox" for="blog_public_off">1162 <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if( isset( $_POST['blog_public'] ) && '0' == $_POST['blog_public'] ) { ?>checked="checked"<?php } ?> />1163 <strong><?php _e( 'No' , 'buddypress'); ?></strong>1164 </label>1165 1214 </fieldset> 1166 1215 1167 1216 <?php … … function bp_blogs_signup_blog( $blogname = '', $blog_title = '', $errors = '' ) 1173 1222 * 1174 1223 * @param WP_Error $errors WP_Error object if any present. 1175 1224 */ 1176 do_action( 'signup_blogform', $errors);1225 do_action( 'signup_blogform', $errors ); 1177 1226 } 1178 1227 1179 1228 /** … … function bp_blogs_signup_blog( $blogname = '', $blog_title = '', $errors = '' ) 1181 1230 * 1182 1231 * Passes submitted values to {@link wpmu_create_blog()}. 1183 1232 * 1184 * @return bool True on success, false on failure. 1233 * @since 1.0.0 1234 * 1235 * @return bool|int|WP_Error False if not a form submission, the Blog ID on success, a WP_Error object on failure. 1185 1236 */ 1186 1237 function bp_blogs_validate_blog_signup() { 1187 global $wpdb, $current_user, $blogname, $blog_title, $errors, $domain, $path, $current_site; 1188 1189 if ( !check_admin_referer( 'bp_blog_signup_form' ) ) 1238 if ( ! isset( $_POST['submit'] ) ) { 1190 1239 return false; 1240 } 1191 1241 1242 $current_site = get_current_site(); 1192 1243 $current_user = wp_get_current_user(); 1244 $blog_name = ''; 1245 $blog_title = ''; 1246 $public = 1; 1193 1247 1194 if( !is_user_logged_in() ) 1195 die(); 1248 if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( wp_unslash( $_POST['_wpnonce'] ), 'bp_blog_signup_form' ) || ! $current_user->ID ) { 1249 return new WP_Error( 'bp_blogs_doing_it_wrong', __( 'Sorry, we cannot create the site. Please try again later.', 'buddypress' ) ); 1250 } 1196 1251 1197 $result = bp_blogs_validate_blog_form(); 1198 extract($result); 1252 $submitted_vars = bp_blogs_get_signup_form_submitted_vars(); 1199 1253 1200 if ( $errors->get_error_code() ) {1201 unset($_POST['submit']);1202 bp_show_blog_signup_form( $blogname, $blog_title, $errors );1203 return false;1254 if ( array_filter( $submitted_vars ) ) { 1255 $blog_name = $submitted_vars['blogname']; 1256 $blog_title = $submitted_vars['blog_title']; 1257 $public = (int) $submitted_vars['blog_public']; 1204 1258 } 1205 1259 1206 $ public = (int) $_POST['blog_public'];1260 $blog = bp_blogs_validate_blog_form( $blog_name, $blog_title ); 1207 1261 1208 // Depreciated. 1209 $meta = apply_filters( 'signup_create_blog_meta', array( 'lang_id' => 1, 'public' => $public ) ); 1262 if ( is_wp_error( $blog['errors'] ) && $blog['errors']->get_error_code() ) { 1263 return $blog['errors']; 1264 } 1210 1265 1211 1266 /** 1212 1267 * Filters the default values for Blog meta. … … function bp_blogs_validate_blog_signup() { 1218 1273 * string $public Default public status. 1219 1274 * } 1220 1275 */ 1221 $meta = apply_filters( 'add_signup_meta', $meta ); 1222 1223 // If this is a subdomain install, set up the site inside the root domain. 1224 if ( is_subdomain_install() ) 1225 $domain = $blogname . '.' . preg_replace( '|^www\.|', '', $current_site->domain ); 1226 1227 $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid ); 1228 bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta, $blog_id ); 1229 return true; 1230 } 1231 1232 /** 1233 * Validate a blog creation submission. 1234 * 1235 * Essentially, a wrapper for {@link wpmu_validate_blog_signup()}. 1236 * 1237 * @return array Contains the new site data and error messages. 1238 */ 1239 function bp_blogs_validate_blog_form() { 1240 $user = ''; 1241 if ( is_user_logged_in() ) 1242 $user = wp_get_current_user(); 1243 1244 return wpmu_validate_blog_signup($_POST['blogname'], $_POST['blog_title'], $user); 1276 $meta = apply_filters( 'add_signup_meta', array( 'lang_id' => 1, 'public' => $public ) ); 1277 1278 return wpmu_create_blog( 1279 $blog['domain'], 1280 $blog['path'], 1281 $blog['blog_title'], 1282 $current_user->ID, $meta, 1283 $current_site->id 1284 ); 1245 1285 } 1246 1286 1247 1287 /** 1248 1288 * Display a message after successful blog registration. 1249 1289 * 1290 * @since 1.0.0 1250 1291 * @since 2.6.0 Introduced `$blog_id` parameter. 1251 1292 * 1252 1293 * @param string $domain The new blog's domain. … … function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, 1264 1305 restore_current_blog(); 1265 1306 1266 1307 ?> 1267 <p ><?php_e( 'Congratulations! You have successfully registered a new site.', 'buddypress' ) ?></p>1308 <p class="success"><?php esc_html_e( 'Congratulations! You have successfully registered a new site.', 'buddypress' ) ?></p> 1268 1309 <p> 1269 1310 <?php printf( 1270 1311 '%s %s', … … function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, 1289 1330 * 1290 1331 * @since 1.0.0 1291 1332 */ 1292 do_action( 'signup_finished');1333 do_action( 'signup_finished' ); 1293 1334 } 1294 1335 1295 1336 /** -
src/bp-templates/bp-legacy/css/buddypress-rtl.css
diff --git src/bp-templates/bp-legacy/css/buddypress-rtl.css src/bp-templates/bp-legacy/css/buddypress-rtl.css index 06df2689f..df05d6fc6 100644
body.activity-permalink #buddypress div.activity-comments div.acomment-content { 733 733 margin-bottom: -1em; 734 734 } 735 735 736 body.create-blog #buddypress .error { 737 background-color: #fdc; 738 border: 1px solid #a00; 739 color: #800; 740 padding: 10px 15px; 741 } 742 743 body.create-blog #buddypress .success { 744 background-color: #efc; 745 border: 1px solid #591; 746 color: #250; 747 padding: 10px 15px; 748 } 749 736 750 /*-------------------------------------------------------------- 737 751 3.5 - Forms 738 752 --------------------------------------------------------------*/ -
src/bp-templates/bp-legacy/css/buddypress.css
diff --git src/bp-templates/bp-legacy/css/buddypress.css src/bp-templates/bp-legacy/css/buddypress.css index 8bdcffacf..32d669fe9 100644
body.activity-permalink #buddypress div.activity-comments div.acomment-content { 733 733 margin-bottom: -1em; 734 734 } 735 735 736 body.create-blog #buddypress .error { 737 background-color: #fdc; 738 border: 1px solid #a00; 739 color: #800; 740 padding: 10px 15px; 741 } 742 743 body.create-blog #buddypress .success { 744 background-color: #efc; 745 border: 1px solid #591; 746 color: #250; 747 padding: 10px 15px; 748 } 749 736 750 /*-------------------------------------------------------------- 737 751 3.5 - Forms 738 752 --------------------------------------------------------------*/ -
src/bp-templates/bp-nouveau/common-styles/_bp_info_messages.scss
diff --git src/bp-templates/bp-nouveau/common-styles/_bp_info_messages.scss src/bp-templates/bp-nouveau/common-styles/_bp_info_messages.scss index 9ac95e156..be24a14ad 100644
1 1 // Sitewide template error & info messages constructs. 2 // @version 3.0.0. 2 // @since 3.0.0. 3 // @version 7.0.0 3 4 .buddypress-wrap { 4 5 5 6 .warn { … … 317 318 } 318 319 319 320 } // close .buddypress-wrap 321 322 body.create-blog { 323 324 #buddypress { 325 326 .error, 327 .success { 328 329 @include message-box($border: none); 330 @include box-shadow( 0 1px 1px 1px rgba(0, 0, 0, 0.1) ); 331 color: $light-text-plus; 332 padding: 10px 15px; 333 background-color: $white; 334 } 335 336 .error { 337 border-left: 4px solid $warnings; 338 } 339 340 .success { 341 border-left: 4px solid $update-success; 342 343 } 344 } 345 } -
src/bp-templates/bp-nouveau/css/buddypress-rtl.css
diff --git src/bp-templates/bp-nouveau/css/buddypress-rtl.css src/bp-templates/bp-nouveau/css/buddypress-rtl.css index cae6b63d6..af7733d4b 100644
body.no-js .buddypress #messages-bulk-management #select-all-messages { 4571 4571 top: 30px; 4572 4572 } 4573 4573 4574 body.create-blog #buddypress .error, 4575 body.create-blog #buddypress .success { 4576 background: #fff; 4577 color: #807f7f; 4578 box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4579 color: #737373; 4580 padding: 10px 15px; 4581 background-color: #fff; 4582 } 4583 4584 body.create-blog #buddypress .error { 4585 border-right: 4px solid #d33; 4586 } 4587 4588 body.create-blog #buddypress .success { 4589 border-right: 4px solid #8a2; 4590 } 4591 4574 4592 .buddypress.widget .item-options { 4575 4593 font-size: 12px; 4576 4594 margin: 0 0 1em; -
src/bp-templates/bp-nouveau/css/buddypress.css
diff --git src/bp-templates/bp-nouveau/css/buddypress.css src/bp-templates/bp-nouveau/css/buddypress.css index 3d0d7d3cf..a3b6e88df 100644
body.no-js .buddypress #messages-bulk-management #select-all-messages { 4571 4571 top: 30px; 4572 4572 } 4573 4573 4574 body.create-blog #buddypress .error, 4575 body.create-blog #buddypress .success { 4576 background: #fff; 4577 color: #807f7f; 4578 box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4579 color: #737373; 4580 padding: 10px 15px; 4581 background-color: #fff; 4582 } 4583 4584 body.create-blog #buddypress .error { 4585 border-left: 4px solid #d33; 4586 } 4587 4588 body.create-blog #buddypress .success { 4589 border-left: 4px solid #8a2; 4590 } 4591 4574 4592 .buddypress.widget .item-options { 4575 4593 font-size: 12px; 4576 4594 margin: 0 0 1em;