WordPress函数 - addslashes_strings_only()

Warning: This function has been deprecated. Use wp_slash() instead.

addslashes_strings_only( mixed $value )

Adds slashes only if the provided value is a string.


Description

See also

  • wp_slash()

Parameters

$value

(mixed) (Required)


Return

(mixed)


Source

File: wp-includes/deprecated.php

function addslashes_strings_only( $value ) {
	return is_string( $value ) ? addslashes( $value ) : $value;
}


Changelog

Changelog
Version Description
5.6.0 This function has been deprecated. Use wp_slash() instead.
5.3.0 Introduced.

发表评论

© 2022 狸玖技术站 - 基于 WordPress