mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core.
Props metodiew. Fixes #36495. git-svn-id: https://develop.svn.wordpress.org/trunk@37985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -646,7 +646,7 @@ function do_enclose( $content, $post_ID ) {
|
||||
*/
|
||||
function wp_get_http_headers( $url, $deprecated = false ) {
|
||||
if ( !empty( $deprecated ) )
|
||||
_deprecated_argument( __FUNCTION__, '2.7' );
|
||||
_deprecated_argument( __FUNCTION__, '2.7.0' );
|
||||
|
||||
$response = wp_safe_remote_head( $url );
|
||||
|
||||
@@ -2115,7 +2115,7 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = null )
|
||||
*/
|
||||
function wp_upload_bits( $name, $deprecated, $bits, $time = null ) {
|
||||
if ( !empty( $deprecated ) )
|
||||
_deprecated_argument( __FUNCTION__, '2.0' );
|
||||
_deprecated_argument( __FUNCTION__, '2.0.0' );
|
||||
|
||||
if ( empty( $name ) )
|
||||
return array( 'error' => __( 'Empty filename' ) );
|
||||
@@ -3847,7 +3847,7 @@ function _deprecated_file( $file, $version, $replacement = null, $message = '' )
|
||||
* For example:
|
||||
*
|
||||
* if ( ! empty( $deprecated ) ) {
|
||||
* _deprecated_argument( __FUNCTION__, '3.0' );
|
||||
* _deprecated_argument( __FUNCTION__, '3.0.0' );
|
||||
* }
|
||||
*
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user