[wp-trac] [WordPress Trac] #11491: Install.php confusing line

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 19 09:27:14 UTC 2009


#11491: Install.php confusing line
-----------------------------+----------------------------------------------
 Reporter:  joshtime         |       Owner:            
     Type:  defect (bug)     |      Status:  new       
 Priority:  lowest           |   Milestone:  Unassigned
Component:  Upgrade/Install  |     Version:  2.9       
 Severity:  minor            |    Keywords:            
-----------------------------+----------------------------------------------
Changes (by nacin):

  * component:  Comments => Upgrade/Install


Comment:

 There's nothing wrong with these lines. When you read the entire
 install.php file (only 156 lines), it makes sense.

 Lines 23-26: if $_GET['step'] is set, $step equals $_GET['step'].
 Otherwise, $step equals 0.

 There's two steps to the admin process, admin.php and admin.php?step=2,
 which cause $step to be 0 and 2, respectively. The check for $step = 1 is
 "in case people are directly linking to" admin.php?step=1.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11491#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list