WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/26/2008 10:39:57 PM (12 years ago)
Author:
ryan
Message:

More informative error message when remote publishing is disabled. Don't disable if upgrading. Props josephscott. see #7157

File:
1 edited

Legend:

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

    r8139 r8202  
    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>
    6056    </table>
    6157    <input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" class="button" />
     
    7369        $admin_email = stripslashes($_POST['admin_email']);
    7470        $public = (int) $_POST['blog_public'];
    75         $remote = (int) $_POST['enable_remotepublishing'];
    7671        // check e-mail address
    7772        if (empty($admin_email)) {
     
    8479
    8580        $wpdb->show_errors();
    86         $result = wp_install($weblog_title, 'admin', $admin_email, $public, $remote);
     81        $result = wp_install($weblog_title, 'admin', $admin_email, $public);
    8782        extract($result, EXTR_SKIP);
    8883?>
Note: See TracChangeset for help on using the changeset viewer.