Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/25/2020 03:13:24 AM (6 years ago)
Author:
imath
Message:

Blogs: renovate the create a blog form

This blog form let logged in users create sites. It aged badly since version 1.0 and we were unnecessarily resetting the blog domain for subdomain installs though wpmu_validate_blog_signup() is already generating this domain.

Fixes #8365

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/blogs/create.php

    r12082 r12734  
    1515do_action( 'bp_before_create_blog_content_template' ); ?>
    1616
    17 <div id="template-notices" role="alert" aria-atomic="true">
     17<div id="buddypress">
     18
     19    <div id="template-notices" role="alert" aria-atomic="true">
     20        <?php
     21
     22        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     23        do_action( 'template_notices' ); ?>
     24
     25    </div>
     26
    1827    <?php
    1928
    20     /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    21     do_action( 'template_notices' ); ?>
     29    /**
     30     * Fires before the display of the blog creation form.
     31     *
     32     * @since 1.1.0
     33     */
     34    do_action( 'bp_before_create_blog_content' ); ?>
     35
     36    <?php if ( bp_blog_signup_enabled() ) : ?>
     37
     38        <?php bp_show_blog_signup_form(); ?>
     39
     40    <?php else: ?>
     41
     42        <div id="message" class="info">
     43            <p><?php _e( 'Site registration is currently disabled', 'buddypress' ); ?></p>
     44        </div>
     45
     46    <?php endif; ?>
     47
     48    <?php
     49
     50    /**
     51     * Fires after the display of the blog creation form.
     52     *
     53     * @since 1.1.0
     54     */
     55    do_action( 'bp_after_create_blog_content' ); ?>
    2256
    2357</div>
    24 
    25 <?php
    26 
    27 /**
    28  * Fires before the display of the blog creation form.
    29  *
    30  * @since 1.1.0
    31  */
    32 do_action( 'bp_before_create_blog_content' ); ?>
    33 
    34 <?php if ( bp_blog_signup_enabled() ) : ?>
    35 
    36     <?php bp_show_blog_signup_form(); ?>
    37 
    38 <?php else: ?>
    39 
    40     <div id="message" class="info">
    41         <p><?php _e( 'Site registration is currently disabled', 'buddypress' ); ?></p>
    42     </div>
    43 
    44 <?php endif; ?>
    45 
    46 <?php
    47 
    48 /**
    49  * Fires after the display of the blog creation form.
    50  *
    51  * @since 1.1.0
    52  */
    53 do_action( 'bp_after_create_blog_content' ); ?>
    5458
    5559<?php
Note: See TracChangeset for help on using the changeset viewer.