[wp-trac] [WordPress Trac] #21343: WP Codex: wp_link_pages() $args example has errors

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 22 09:17:08 UTC 2012


#21343: WP Codex: wp_link_pages() $args example has errors
--------------------------+-----------------------------
 Reporter:  anointed      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 On this link:
 http://codex.wordpress.org/Function_Reference/wp_link_pages

 the example arguments are given as such:

 {{{
 $args = array(
     'before'           => '<p>' . __('Pages:'),
     'after'            => '</p>',
     'link_before'      => ,
     'link_after'       => ,
     'next_or_number'   => 'number',
     'nextpagelink'     => __('Next page'),
     'previouspagelink' => __('Previous page'),
     'pagelink'         => '%',
     'more_file'        => ,
     'echo'             => 1 );
 }}}
 It should read:

 {{{
 $args = array(
     'before'           => '<p>' . __('Pages:'),
     'after'            => '</p>',
     'link_before'      => '',
     'link_after'       => '',
     'next_or_number'   => 'number',
     'nextpagelink'     => __('Next page'),
     'previouspagelink' => __('Previous page'),
     'pagelink'         => '%',
     'more_file'        => '',
     'echo'             => 1 );
 }}}
 Basically the quote marks are missing on the args (link_before,
 link_after, and more_file) thus causing an error.

 *Not even sure if this is where to report this type of issue, sorry if
 it's not.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21343>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list