Ensure both parameters and the return for `has_shortcode()` are fully documented.
Props cais, SergeyBiryukov See #31048. Built from https://develop.svn.wordpress.org/trunk@31242 git-svn-id: http://core.svn.wordpress.org/trunk@31223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eff3b8925b
commit
a8e2ae2117
|
@ -145,8 +145,10 @@ function shortcode_exists( $tag ) {
|
||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
*
|
*
|
||||||
* @global array $shortcode_tags
|
* @global array $shortcode_tags
|
||||||
* @param string $tag
|
*
|
||||||
* @return boolean
|
* @param string $content Content to search for shortcodes.
|
||||||
|
* @param string $tag Shortcode tag to check.
|
||||||
|
* @return bool Whether the passed content contains. the given shortcode.
|
||||||
*/
|
*/
|
||||||
function has_shortcode( $content, $tag ) {
|
function has_shortcode( $content, $tag ) {
|
||||||
if ( false === strpos( $content, '[' ) ) {
|
if ( false === strpos( $content, '[' ) ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31241';
|
$wp_version = '4.2-alpha-31242';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue