Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme » New Versions & Updates »

Patch 122-02: documentation error in 'Limited PHP Code' for get_search_form(


  #1  
Old Apr 16, 2014, 05:18 AM
juggledad's Avatar
juggledad
 
23,526 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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' ),
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch 122-01: the Limited PHP function the_author_posts_link() does not work juggledad New Versions & Updates 0 Apr 15, 2014 07:05 PM
PATCH 113-06: the_author and other 'Limited PHP code' don't all work juggledad New Versions & Updates 0 Mar 13, 2013 03:49 PM
PATCH 133-02: Documentation fix - 'get_searchform()' should be 'get_search_form()' juggledad Montezuma Theme 0 Dec 6, 2012 04:12 AM
RFE 013-04: support the function wp-get-archives() in the limited PHP code juggledad New Versions & Updates 0 Oct 25, 2012 06:51 PM
PATCH 373-02: odd character appears in the documentation for 'Add new Widget Areas' juggledad Old Version fixes and change logs 0 Dec 15, 2011 04:59 AM


All times are GMT -6. The time now is 10:32 AM.


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