Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions & Updates (http://forum.bytesforall.com/forumdisplay.php?f=54)
-   -   Patch 122-02: documentation error in 'Limited PHP Code' for get_search_form( (http://forum.bytesforall.com/showthread.php?t=22100)

juggledad Apr 16, 2014 05:18 AM

Patch 122-02: documentation error in 'Limited PHP Code' for get_search_form(
 
There is a documentaton error in the 'Limited PHP Code' for the function get_search_form()

In the 'PHP Code - Full List' you will see
Code:

get_search_form()
but in the example you will see
Code:

get_searchform()
(note the missing underscore)

The correct version to use is get_search_form()

you can fix this by editing get_whitelist.php and changing line 46 from
HTML Code:

                                '<?php get_searchform(); ?>' => __( 'Includes <code>searchform.php</code> sub template.', 'montezuma' ),
to
HTML Code:

                                '<?php get_search_form(); ?>' => __( 'Includes <code>searchform.php</code> sub template.', 'montezuma' ),


All times are GMT -6. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.