Remove GPL code from WordPress 3.3.2
This commit is contained in:
parent
f6979edb76
commit
e2dfc1b35c
@ -1,19 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/general-template.php
|
function selected($selected, $current) {
|
||||||
function selected( $selected, $current = true, $echo = true ) {
|
if ($selected === $current) {
|
||||||
return __checked_selected_helper( $selected, $current, $echo, 'selected' );
|
return 'selected';
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/general-template.php
|
return '';
|
||||||
function __checked_selected_helper( $helper, $current, $echo, $type ) {
|
|
||||||
if ( (string) $helper === (string) $current )
|
|
||||||
$result = " $type='$type'";
|
|
||||||
else
|
|
||||||
$result = '';
|
|
||||||
|
|
||||||
if ( $echo )
|
|
||||||
echo $result;
|
|
||||||
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user