[wp-trac] [WordPress Trac] #22389: wp_dropdown_pages() is failing in Beta-2

WordPress Trac noreply at wordpress.org
Thu Nov 8 03:31:35 UTC 2012


#22389: wp_dropdown_pages() is failing in Beta-2
--------------------------+---------------------
 Reporter:  beautomated   |       Owner:  nacin
     Type:  defect (bug)  |      Status:  closed
 Priority:  high          |   Milestone:  3.5
Component:  Template      |     Version:  trunk
 Severity:  major         |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Description changed by SergeyBiryukov:

Old description:

> The following code works in v3.4.2, but not in v3.5-beta2-22455. The
> dropdown containing the pages is not echo'd as is the default behavior.
> See: http://codex.wordpress.org/Function_Reference/wp_dropdown_pages
> Here's the unit test Plugin:
>
> <?php
> /*
>         Plugin Name: Sean's Unit Test
>         Plugin URI: http://www.beautomated.com/
>         Description: Runs a unit test of some simple code.
>         Author: beAutomated
>         Version: 0.1-alpha
>         Author URI: http://www.beautomated.com/
>  */
>
> add_action( 'admin_init', 'seantest_admin_init' );
>
> function seantest_admin_init() {
>         echo '<p>Before Unit Test</p>';
>         wp_dropdown_pages();
>         echo '<p>After Unit Test</p>';
> }
>
> ?>

New description:

 The following code works in v3.4.2, but not in v3.5-beta2-22455. The
 dropdown containing the pages is not echo'd as is the default behavior.
 See: http://codex.wordpress.org/Function_Reference/wp_dropdown_pages
 Here's the unit test Plugin:
 {{{
 <?php
 /*
         Plugin Name: Sean's Unit Test
         Plugin URI: http://www.beautomated.com/
         Description: Runs a unit test of some simple code.
         Author: beAutomated
         Version: 0.1-alpha
         Author URI: http://www.beautomated.com/
  */

 add_action( 'admin_init', 'seantest_admin_init' );

 function seantest_admin_init() {
         echo '<p>Before Unit Test</p>';
         wp_dropdown_pages();
         echo '<p>After Unit Test</p>';
 }

 ?>
 }}}

--

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


More information about the wp-trac mailing list