From 860e7ccccd39d8215b2fb999422a9d656e64cd2d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Jan 2017 22:13:37 +0000 Subject: [PATCH] Link Manager: Correct version number for `_deprecated_argument()` in `xfn_check()`. Props grapplerulrich. Fixes #39737. git-svn-id: https://develop.svn.wordpress.org/trunk@40029 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index c26ced427a..50c6eafd91 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -1022,8 +1022,9 @@ function link_target_meta_box($link) { ?> function xfn_check( $class, $value = '', $deprecated = '' ) { global $link; - if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '0.0.0' ); // Never implemented + if ( ! empty( $deprecated ) ) { + _deprecated_argument( __FUNCTION__, '2.5.0' ); // Never implemented + } $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; $rels = preg_split('/\s+/', $link_rel);