Ticket #7157: wp-admin--install.php.diff
| File wp-admin--install.php.diff, 1.3 KB (added by , 18 years ago) |
|---|
-
wp-admin/install.php
53 53 <tr> 54 54 <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> 55 55 </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 56 </table> 60 </table>61 57 <input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" class="button" /> 62 58 </form> 63 59 … … 72 68 $weblog_title = stripslashes($_POST['weblog_title']); 73 69 $admin_email = stripslashes($_POST['admin_email']); 74 70 $public = (int) $_POST['blog_public']; 75 $remote = (int) $_POST['enable_remotepublishing'];76 71 // check e-mail address 77 72 if (empty($admin_email)) { 78 73 // TODO: poka-yoke … … 83 78 } 84 79 85 80 $wpdb->show_errors(); 86 $result = wp_install($weblog_title, 'admin', $admin_email, $public , $remote);81 $result = wp_install($weblog_title, 'admin', $admin_email, $public); 87 82 extract($result, EXTR_SKIP); 88 83 ?> 89 84