| @@ -154,9 +154,10 @@ | ||
| 154 | 154 | $translated = apply_filters("ws_plugin__s2member_translation_mangler", _x('By filling out the form below, you can <strong>add a site to your account</strong>.', "s2member-front", "s2member").(($blogs_allowed > 1) ? '<br />'.sprintf(_nx('You may create <strong>%s</strong> site.', 'You may create up to <strong>%s</strong> sites.', $blogs_allowed, "s2member-front", "s2member"), $blogs_allowed) : ''), get_defined_vars()); |
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | - else if((isset ($s["is_bp_blog_creation"]) && $s["is_bp_blog_creation"]) || (!isset ($s["is_bp_blog_creation"]) && ($s["is_bp_blog_creation"] = (c_ws_plugin__s2member_utils_conds::bp_is_installed() && bp_is_create_blog()) ? TRUE : FALSE))) | |
| 158 | + //260917.0727 Defer caching BuddyPress blog-creation state until bp_is_create_blog() exists; s2Member-Only can detect BuddyPress before that helper finishes loading. | |
| 159 | + else if((isset ($s["is_bp_blog_creation"]) && $s["is_bp_blog_creation"]) || (!isset ($s["is_bp_blog_creation"]) && function_exists('bp_is_create_blog') && ($s["is_bp_blog_creation"] = (c_ws_plugin__s2member_utils_conds::bp_is_installed() && bp_is_create_blog()) ? TRUE : FALSE))) | |
| 159 | 160 | { |
| 160 | 161 | if($original === "If you’re not going to use a great domain, leave it for a new user. Now have at it!") |
| 161 | 162 | { |
| 162 | 163 | $translated = apply_filters("ws_plugin__s2member_translation_mangler", "", get_defined_vars()); |