Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

PATCH 133-02: Documentation fix - 'get_searchform()' should be 'get_search_form()'


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 6, 2012, 04:12 AM
juggledad's Avatar
juggledad
 
22,265 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
In the limited PHP Code, there is an example for the function 'get_searchform'. Due to a typo, the name is incorrect, it should be 'get_search_form' (note the secdond underscore).

to fix this, you can edit edit two modules or replace the two modules with the files included with this post.

to EDIT the modules
edit the module '650_sub_templates.php' found in the 'montezuma/admin/options/' folder and change line 134 from
HTML Code:
<code>&lt;?php get_searchform(); ?&gt;</code>. You can also create a new custom searchform template. See below on 
to
HTML Code:
<code>&lt;?php get_search_form(); ?&gt;</code>. You can also create a new custom search form template. See below on 
and change line 168 from
HTML Code:
<code>&lt?php get_searchform(); ?&gt;</code>
to
HTML Code:
<code>&lt?php get_search_form(); ?&gt;</code>
next edit the module 'get_whitelist.php' found in the 'montezuma/includes/' folder and change line 46 from
HTML Code:
				'<?php get_searchform(); ?>' => 'Includes <code>searchform.php</code> sub template.',
to
HTML Code:
				'<?php get_search_form(); ?>' => 'Includes <code>searchform.php</code> sub template.',
to REPLACE the modules
1) download and unzip the following attachment
2) using FTP upload the file '650_sub_templates.php' to the 'montezuma/admin/options/' folder, replacing the existing file
3) using FTP upload the file 'get_whitelist.php' to the 'montezuma/includes/' folder replacing the existing file
Attached Files
File Type: zip patch-113-02.zip (15.6 KB, 142 views)
__________________
"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
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 08:21 AM
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
PATCH 367-02: Page Titles are double with 3.6.7 (now part of PATCH 367-04) juggledad Old Version fixes and change logs 0 May 13, 2011 03:57 PM
CSS documentation tunturiflyer Center area post/pages 5 May 5, 2011 05:16 PM
Documentation csguys New Versions, & Updating 6 Dec 18, 2009 10:14 AM


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


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