Browse Source

Remove GPL code from WordPress 3.3.2

master
Adam Backstrom 6 years ago
parent
commit
e2dfc1b35c
1 changed files with 5 additions and 15 deletions
  1. +5
    -15
      functions.php

+ 5
- 15
functions.php View File

@@ -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;
function selected($selected, $current) {
if ($selected === $current) {
return 'selected';
}

return $result;
return '';
}

Loading…
Cancel
Save