Make WordPress Core


Ignore:
Timestamp:
07/17/2014 09:13:53 AM (11 years ago)
Author:
DrewAPicture
Message:

Fix syntax for single- and multi-line comments in wp-admin-directory files.

See #28931.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r29188 r29206  
    206206) $charset_collate;\n";
    207207
    208     // usermeta
     208    // Usermeta.
    209209    $usermeta_table = "CREATE TABLE $wpdb->usermeta (
    210210  umeta_id bigint(20) unsigned NOT NULL auto_increment,
     
    523523        $wpdb->query("INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES " . $insert);
    524524
    525     // in case it is set, but blank, update "home"
     525    // In case it is set, but blank, update "home".
    526526    if ( !__get_option('home') ) update_option('home', $guessurl);
    527527
    528     // Delete unused options
     528    // Delete unused options.
    529529    $unusedoptions = array(
    530530        'blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory',
     
    548548        delete_option($option);
    549549
    550     // delete obsolete magpie stuff
     550    // Delete obsolete magpie stuff.
    551551    $wpdb->query("DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'");
    552552
    553     // Deletes all expired transients.
    554     // The multi-table delete syntax is used to delete the transient record from table a,
    555     // and the corresponding transient_timeout record from table b.
     553    /*
     554     * Deletes all expired transients. The multi-table delete syntax is used
     555     * to delete the transient record from table a, and the corresponding
     556     * transient_timeout record from table b.
     557     */
    556558    $time = time();
    557559    $sql = "DELETE a, b FROM $wpdb->options a, $wpdb->options b
     
    820822        $role->add_cap( 'remove_users' );
    821823
    822         // Never used, will be removed. create_users or
    823         // promote_users is the capability you're looking for.
     824        /*
     825         * Never used, will be removed. create_users or promote_users
     826         * is the capability you're looking for.
     827         */
    824828        $role->add_cap( 'add_users' );
    825829
     
    864868        $errors->add( 'empty_sitename', __( 'You must provide a name for your network of sites.' ) );
    865869
    866     // check for network collision
     870    // Check for network collision.
    867871    if ( $network_id == $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->site WHERE id = %d", $network_id ) ) )
    868872        $errors->add( 'siteid_exists', __( 'The network already exists.' ) );
     
    875879        return $errors;
    876880
    877     // set up site tables
     881    // Set up site tables.
    878882    $template = get_option( 'template' );
    879883    $stylesheet = get_option( 'stylesheet' );
     
    921925
    922926    $misc_exts = array(
    923         // images
     927        // Images.
    924928        'jpg', 'jpeg', 'png', 'gif',
    925         // video
     929        // Video.
    926930        'mov', 'avi', 'mpg', '3gp', '3g2',
    927         // "audio"
     931        // "audio".
    928932        'midi', 'mid',
    929         // misc
     933        // Miscellaneous.
    930934        'pdf', 'doc', 'ppt', 'odt', 'pptx', 'docx', 'pps', 'ppsx', 'xls', 'xlsx', 'key',
    931935    );
     
    982986    $wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert );
    983987
    984     // When upgrading from single to multisite, assume the current site will become the main site of the network.
    985     // When using populate_network() to create another network in an existing multisite environment,
    986     // skip these steps since the main site of the new network has not yet been created.
     988    /*
     989     * When upgrading from single to multisite, assume the current site will
     990     * become the main site of the network. When using populate_network()
     991     * to create another network in an existing multisite environment, skip
     992     * these steps since the main site of the new network has not yet been
     993     * created.
     994     */
    987995    if ( ! is_multisite() ) {
    988996        $current_site = new stdClass;
Note: See TracChangeset for help on using the changeset viewer.