Make WordPress Core

Ticket #2870: 2870.patch

File 2870.patch, 3.3 KB (added by pishmishy, 17 years ago)

Makes installation form pluggable

  • wp-includes/default-filters.php

     
    186186add_action('edit_post', 'wp_check_for_changed_slugs');
    187187add_action('edit_form_advanced', 'wp_remember_old_slug');
    188188
     189// Install information
     190add_action('wp_install_getinformation','wp_install_getinformation_title',1);
     191add_action('wp_install_getinformation','wp_install_getinformation_email',2);
     192add_action('wp_install_getinformation','wp_install_getinformation_ping',3);
    189193?>
  • wp-includes/pluggable.php

     
    13211321}
    13221322endif;
    13231323
     1324if (!function_exists('wp_install_information')) :
     1325function wp_install_information() {
     1326
     1327
     1328}
     1329endif;
     1330
    13241331?>
  • wp-includes/functions.php

     
    16421642                        trigger_error( printf( __("%s is <strong>deprecated</strong> since version %s with no alternative available."), $file, $version ) );
    16431643        }
    16441644}
     1645
     1646function wp_install_getinformation_title() {
     1647                ?>
     1648                        <tr>
     1649                <th width="33%"><?php _e('Blog title:'); ?></th>
     1650                            <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>
     1651                        </tr>
     1652                <?php
     1653}
     1654
     1655function wp_install_getinformation_email() {
     1656                ?>
     1657                        <tr>
     1658                <th><?php _e('Your e-mail:'); ?></th>
     1659                                <td><input name="admin_email" type="text" id="admin_email" size="25" /></td>
     1660                    </tr>
     1661                <?php
     1662}
     1663
     1664function wp_install_getinformation_ping() {
     1665                ?>
     1666<tr>
     1667            <td>&nbsp;</td>
     1668                                    <td><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>
     1669                                                        </tr>
     1670                <?php
     1671}
     1672
    16451673?>
  • wp-admin/install.php

     
    4646
    4747<form id="setup" method="post" action="install.php?step=2">
    4848        <table width="100%">
    49                 <tr>
    50                         <th width="33%"><?php _e('Blog title:'); ?></th>
    51                         <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>
    52                 </tr>
    53                 <tr>
    54                         <th><?php _e('Your e-mail:'); ?></th>
    55                         <td><input name="admin_email" type="text" id="admin_email" size="25" /></td>
    56                 </tr>
    57                 <tr>
    58                         <td>&nbsp;</td>
    59                         <td><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>
    60                 </tr>
     49                <?php do_action("wp_install_getinformation"); ?>
    6150        </table>
    6251        <p><em><?php _e('Double-check your email address before continuing.'); ?></em></p>
    6352        <h2 class="step"><input type="submit" name="Submit" value="<?php _e('Install WordPress &raquo;'); ?>" /></h2>
     
    11099
    111100<p id="footer"><?php _e('<a href="http://wordpress.org/">WordPress</a>, personal publishing platform.'); ?></p>
    112101</body>
    113 </html>
    114  No newline at end of file
     102</html>