Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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' ),
__________________
"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 11:51 PM.


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