WordPress.org

Make WordPress Core

Ticket #34739: 34739.patch

File 34739.patch, 1.2 KB (added by igmoweb, 4 years ago)

Removed network_site_new_blog_meta filter. Can make use of wpmu_new_blog instead

  • src/wp-admin/network/site-new.php

     
    123123        $id = wpmu_create_blog( $newdomain, $path, $title, $user_id, $meta, $current_site->id );
    124124        $wpdb->show_errors();
    125125        if ( ! is_wp_error( $id ) ) {
     126
     127
    126128                if ( ! is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) ) {
    127129                        update_user_option( $user_id, 'primary_blog', $id, true );
    128130                }
     
    228230                <tr class="form-field">
    229231                        <td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>
    230232                </tr>
     233
    231234        </table>
     235
     236        <?php
     237                /**
     238                 * Fires after the Add New Site Admin Network Screen Form is rendered
     239                 * and before submit button is displayed and form tag is closed.
     240                 *
     241                 * Add you own custom fields here when creating new blogs in a network
     242                 *
     243                 * @since
     244                 */
     245                do_action( 'network_after_site_new_form' );
     246        ?>
     247
    232248        <?php submit_button( __('Add Site'), 'primary', 'add-site' ); ?>
    233249        </form>
    234250</div>