Skip to content

Commit

Permalink
Deprecate tarski_searchform function.
Browse files Browse the repository at this point in the history
Signed-off-by: Benedict Eastaugh <benedict@eastaugh.net>
  • Loading branch information
Philip M. Hofer (Frumph) authored and beastaugh committed Nov 17, 2010
1 parent c6aa8e7 commit 54e56d3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -4,6 +4,7 @@

#### Tweaks

* Deprecated `tarski_searchform` function
* Replaced `detectWPMU` and `detectWPMUadmin` with core functions
`is_multisite` and `is_super_admin`
* Updated license information in stylesheet and moved license file to comply
Expand Down
20 changes: 18 additions & 2 deletions app/api/deprecated.php
Expand Up @@ -2,15 +2,31 @@
/**
* @package WordPress
* @subpackage Tarski
*
*
* The scrapyard: deprecated functions that haven't yet been removed.
*
*
* Don't write plugins that rely on these functions, as they are liable
* to be removed between versions. There will usually be a better way
* to do what you want; post on the forum if you need help.
* @link http://tarskitheme.com/forum/
*/

/**
* tarski_searchform() - Outputs the WordPress search form.
*
* Will only output the search form on pages that aren't a search
* page or a 404, as these pages include the search form earlier
* in the document and the search form relies on the 's' id value,
* which as an HTML id must be unique within the document.
* @since 2.0
* @deprecated 2.8
*/
function tarski_searchform() {
_deprecated_function(__FUNCTION__, '2.8');

get_search_form();
}

/**
* detectWPMUadmin() - Detect whether the current user is a WPMU site administrator.
*
Expand Down
13 changes: 0 additions & 13 deletions library/helpers/template_helper.php
Expand Up @@ -728,19 +728,6 @@ function tarski_post_thumbnail() {
return is_singular() ? $thumbnail : sprintf($wrapper, get_permalink(), $thumbnail);
}

/**
* tarski_searchform() - Outputs the WordPress search form.
*
* Will only output the search form on pages that aren't a search
* page or a 404, as these pages include the search form earlier
* in the document and the search form relies on the 's' id value,
* which as an HTML id must be unique within the document.
* @since 2.0
*/
function tarski_searchform() {
include_once(TEMPLATEPATH . "/searchform.php");
}

/**
* Outputs the site feed and Tarski credits.
*
Expand Down

0 comments on commit 54e56d3

Please sign in to comment.