WordPress.org

Make WordPress Core

Ticket #7157: wp-admin--install.php.diff

File wp-admin--install.php.diff, 1.3 KB (added by josephscott, 6 years ago)
  • wp-admin/install.php

     
    5353                <tr> 
    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> 
    5956        </table> 
    60         </table> 
    6157        <input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" class="button" /> 
    6258</form> 
    6359 
     
    7268                $weblog_title = stripslashes($_POST['weblog_title']); 
    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)) { 
    7873                        // TODO: poka-yoke 
     
    8378                } 
    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?> 
    8984