mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -373,7 +373,7 @@ function the_excerpt() {
|
||||
*/
|
||||
function get_the_excerpt( $post = null ) {
|
||||
if ( is_bool( $post ) ) {
|
||||
_deprecated_argument( __FUNCTION__, '2.3' );
|
||||
_deprecated_argument( __FUNCTION__, '2.3.0' );
|
||||
}
|
||||
|
||||
$post = get_post( $post );
|
||||
@@ -1417,7 +1417,7 @@ function walk_page_dropdown_tree() {
|
||||
*/
|
||||
function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
|
||||
if ( !empty( $deprecated ) )
|
||||
_deprecated_argument( __FUNCTION__, '2.5' );
|
||||
_deprecated_argument( __FUNCTION__, '2.5.0' );
|
||||
|
||||
if ( $fullsize )
|
||||
echo wp_get_attachment_link($id, 'full', $permalink);
|
||||
@@ -1724,7 +1724,7 @@ function wp_list_post_revisions( $post_id = 0, $type = 'all' ) {
|
||||
// $args array with (parent, format, right, left, type) deprecated since 3.6
|
||||
if ( is_array( $type ) ) {
|
||||
$type = ! empty( $type['type'] ) ? $type['type'] : $type;
|
||||
_deprecated_argument( __FUNCTION__, '3.6' );
|
||||
_deprecated_argument( __FUNCTION__, '3.6.0' );
|
||||
}
|
||||
|
||||
if ( ! $revisions = wp_get_post_revisions( $post->ID ) )
|
||||
|
||||
Reference in New Issue
Block a user