Code Modernization: Remove obsolete comments about older PHP versions.
This commit: * Removes various comments referencing PHP versions which are no longer supported. * Removes various comments containing “hints” of things to do after a particular PHP version drop. These hints are incorrect/not actionable for various reasons, so have no value: * Even though a function could be turned into a closure, removing the function would be a backward compatibility break which is not acceptable, so this suggestion is not actionable. * Short ternaries are forbidden by the coding standard exactly to prevent the faulty code suggested in the comment from getting into the codebase. Follow-up to [1243/tests], [6543], [11816], [29861], [29864], [34928], [35369], [36698], [38694], [50786], [58678]. Props jrf, ayeshrajans. See #61574. Built from https://develop.svn.wordpress.org/trunk@58682 git-svn-id: http://core.svn.wordpress.org/trunk@58084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1270,7 +1270,7 @@ function xfn_check( $xfn_relationship, $xfn_value = '', $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 ?: '';
|
||||
$link_rel = isset( $link->link_rel ) ? $link->link_rel : '';
|
||||
$link_rels = preg_split( '/\s+/', $link_rel );
|
||||
|
||||
// Mark the specified value as checked if it matches the current link's relationship.
|
||||
|
||||
Reference in New Issue
Block a user