Remove GPL code from WordPress 3.3.2

这个提交包含在:
Adam Backstrom 2013-07-25 17:55:56 -04:00
父节点 f6979edb76
当前提交 e2dfc1b35c
共有 1 个文件被更改,包括 6 次插入16 次删除

查看文件

@ -1,19 +1,9 @@
<?php
// http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/general-template.php
function selected( $selected, $current = true, $echo = true ) {
return __checked_selected_helper( $selected, $current, $echo, 'selected' );
}
// http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/general-template.php
function __checked_selected_helper( $helper, $current, $echo, $type ) {
if ( (string) $helper === (string) $current )
$result = " $type='$type'";
else
$result = '';
if ( $echo )
echo $result;
return $result;
function selected($selected, $current) {
if ($selected === $current) {
return 'selected';
}
return '';
}