WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/20/2008 04:35:45 PM (12 years ago)
Author:
westi
Message:

Allow enabling of remote publishing at install time. See #7157.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r7979 r8139  
    5454            <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('Allow my blog to appear in search engines like Google and Technorati.'); ?></label></td>
    5555        </tr>
     56        <tr>
     57            <td colspan="2"><label><input type="checkbox" name="enable_remotepublishing" value="0" /> <?php _e('Enable remote publishing using the WordPress, Movable Type, MetaWeblog, Blogger and Atom publishing protocols for my blog.'); ?></label></td>
     58        </tr>
     59    </table>
    5660    </table>
    5761    <input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" class="button" />
     
    6973        $admin_email = stripslashes($_POST['admin_email']);
    7074        $public = (int) $_POST['blog_public'];
     75        $remote = (int) $_POST['enable_remotepublishing'];
    7176        // check e-mail address
    7277        if (empty($admin_email)) {
     
    7984
    8085        $wpdb->show_errors();
    81         $result = wp_install($weblog_title, 'admin', $admin_email, $public);
     86        $result = wp_install($weblog_title, 'admin', $admin_email, $public, $remote);
    8287        extract($result, EXTR_SKIP);
    8388?>
Note: See TracChangeset for help on using the changeset viewer.