Make WordPress Core

Ticket #14147: 14147.2.diff

File 14147.2.diff, 4.0 KB (added by sorich87, 14 years ago)

Tabs to save kittehs.

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

     
    2424                wp_die( __( 'You do not have permission to access this page.' ) );
    2525
    2626        if ( is_array( $_POST['blog'] ) == false )
    27                 wp_die(  __( 'Can’t create an empty site.' ) );
     27                wp_die( __( 'Can’t create an empty site.' ) );
    2828        $blog = $_POST['blog'];
    2929        $domain = '';
    3030        if ( ! preg_match( '/(--)/', $blog['domain'] ) && preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
     
    7373                if ( !is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) )
    7474                        update_user_option( $user_id, 'primary_blog', $id, true );
    7575                $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) );
    76                 wp_mail( get_site_option('admin_email'),  sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );
     76                wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );
    7777                wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
    7878                wp_redirect( add_query_arg( array('update' => 'added'), 'site-new.php' ) );
    7979                exit;
  • wp-admin/network/site-info.php

     
    3535
    3636        if ( isset( $_POST['update_home_url'] ) && $_POST['update_home_url'] == 'update' ) {
    3737                $blog_address = get_blogaddress_by_domain( $_POST['blog']['domain'], $_POST['blog']['path'] );
    38                 if ( get_option( 'siteurl' ) !=  $blog_address )
     38                if ( get_option( 'siteurl' ) != $blog_address )
    3939                        update_option( 'siteurl', $blog_address );
    4040
    4141                if ( get_option( 'home' ) != $blog_address )
     
    149149
    150150</div>
    151151<?php
    152 require('../admin-footer.php');
    153  No newline at end of file
     152require('../admin-footer.php');
  • wp-admin/network/edit.php

     
    302302
    303303        // Themes
    304304    case 'updatethemes':
    305         if ( ! current_user_can( 'manage_network_themes' ) )
    306                 wp_die( __( 'You do not have permission to access this page.' ) );
     305                if ( ! current_user_can( 'manage_network_themes' ) )
     306                        wp_die( __( 'You do not have permission to access this page.' ) );
    307307
    308308        if ( is_array( $_POST['theme'] ) ) {
    309309                        $themes = get_themes();
     
    315315                        }
    316316                        update_site_option( 'allowedthemes', $allowed_themes );
    317317                }
    318                 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'themes' ),  wp_get_referer() ) );
     318                wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'themes' ), wp_get_referer() ) );
    319319                exit();
    320320        break;
    321321
     
    482482                $user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) );
    483483
    484484                if ( false == $user_id )
    485                         wp_die( __( 'Duplicated username or email address.' ) );
     485                        wp_die( __( 'Duplicated username or email address.' ) );
    486486                else
    487487                        wp_new_user_notification( $user_id, $password );
    488488
  • wp-admin/network/site-themes.php

     
    4040                                $allowedthemes[$theme] = true;
    4141                }
    4242        }
    43         update_option( 'allowedthemes',  $allowedthemes );
     43        update_option( 'allowedthemes', $allowedthemes );
    4444
    4545        restore_current_blog();
    4646        wp_redirect( add_query_arg( array( 'update' => 'updated', 'id' => $id ), 'site-themes.php') );
     
    117117
    118118</div>
    119119<?php
    120 require('../admin-footer.php');
    121  No newline at end of file
     120require('../admin-footer.php');