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
This commit is contained in:
Sergey Biryukov 2017-01-29 22:13:37 +00:00
parent 53670e4afc
commit 860e7ccccd
1 changed files with 3 additions and 2 deletions

View File

@ -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);