Upgrade global bug.
git-svn-id: http://svn.automattic.com/wordpress/trunk@700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da306e01d5
commit
823edb960d
|
@ -43,7 +43,7 @@ BOOLSELECT;
|
|||
case 5: // select
|
||||
$ret = <<<SELECT
|
||||
<label for="$option_result->option_name">$option_result->option_name</label>$between
|
||||
<select name="$option_result->option_name" $disabled>
|
||||
<select name="$option_result->option_name" id="$option_result->option_name" $disabled>
|
||||
SELECT;
|
||||
|
||||
$select = $wpdb->get_results("SELECT optionvalue, optionvalue_desc "
|
||||
|
@ -72,13 +72,13 @@ SELECT;
|
|||
}
|
||||
|
||||
// now we may need to do table name substitution
|
||||
eval("include('../wp-config.php');\$sql = \"$sql\";");
|
||||
eval("include('../wp-config.php');\$sql = \"$sql\";");
|
||||
|
||||
$ret = <<<SELECT
|
||||
<label for="$option_result->option_name">$option_result->option_name</label>$between
|
||||
<select name="$option_result->option_name" $disabled>
|
||||
SELECT;
|
||||
|
||||
|
||||
$select = $wpdb->get_results("$sql");
|
||||
if ($select) {
|
||||
foreach($select as $option) {
|
||||
|
|
|
@ -56,7 +56,7 @@ function upgrade_071() {
|
|||
}
|
||||
|
||||
function upgrade_072() {
|
||||
global $wpdb, $tableposts, $tablelinks, $tablelinkcategories, $tableoptions, $tableoptiontypes, $tableoptiongroups, $tableoptiongroup_options, $tableoptionvalues;
|
||||
global $wpdb, $tableposts, $tablelinks, $tablelinkcategories, $tableoptions, $tableoptiontypes, $tableoptiongroups, $tableoptiongroup_options, $tableoptionvalues, $tablecategories;
|
||||
maybe_add_column($tablelinks, 'link_notes', "ALTER TABLE $tablelinks ADD COLUMN link_notes MEDIUMTEXT NOT NULL DEFAULT '' ");
|
||||
maybe_add_column($tablelinkcategories, 'show_images', "ALTER TABLE $tablelinkcategories ADD COLUMN show_images enum('Y','N') NOT NULL default 'Y'");
|
||||
maybe_add_column($tablelinkcategories, 'show_description', "ALTER TABLE $tablelinkcategories ADD COLUMN show_description enum('Y','N') NOT NULL default 'Y'");
|
||||
|
|
Loading…
Reference in New Issue