mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 20:57:49 +02:00
Shortcodes API: renamed exist() to exists() method
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
$shortcode = (string) $shortcode;
|
$shortcode = (string) $shortcode;
|
||||||
|
|
||||||
// Delete shortcode
|
// Delete shortcode
|
||||||
if (Shortcode::exist($shortcode)) unset(Shortcode::$shortcode_tags[$shortcode]);
|
if (Shortcode::exists($shortcode)) unset(Shortcode::$shortcode_tags[$shortcode]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -116,14 +116,14 @@
|
|||||||
* Check if a shortcode has been registered.
|
* Check if a shortcode has been registered.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* if (Shortcode::exist('shortcode_name')) {
|
* if (Shortcode::exists('shortcode_name')) {
|
||||||
* // do something...
|
* // do something...
|
||||||
* }
|
* }
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $shortcode Shortcode tag.
|
* @param string $shortcode Shortcode tag.
|
||||||
*/
|
*/
|
||||||
pulbic static function exist($shortcode) {
|
pulbic static function exists($shortcode) {
|
||||||
|
|
||||||
// Redefine vars
|
// Redefine vars
|
||||||
$shortcode = (string) $shortcode;
|
$shortcode = (string) $shortcode;
|
||||||
|
Reference in New Issue
Block a user