Changeset 4831
- Timestamp:
- 01/30/2007 01:43:39 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r4787 r4831 76 76 </fieldset> 77 77 78 <fieldset id="tagdiv" class="dbx-box"> 79 <h3 class="dbx-handle"><?php _e('Tags') ?></h3> 80 <div class="dbx-content"> 81 <p id="jaxtag"></p> 82 <ul id="tagchecklist"><?php dropdown_tags(); ?></ul></div> 83 </fieldset> 84 78 85 <fieldset id="commentstatusdiv" class="dbx-box"> 79 86 <h3 class="dbx-handle"><?php _e('Discussion') ?></h3> -
trunk/wp-admin/upgrade-schema.php
r4574 r4831 120 120 KEY post_name (post_name), 121 121 KEY type_status_date (post_type,post_status,post_date,ID) 122 ); 123 CREATE TABLE $wpdb->tags ( 124 tag_id bigint(20) unsigned NOT NULL auto_increment, 125 tag varchar(30) NOT NULL default '', 126 raw_tag varchar(50) NOT NULL default '', 127 tag_count bigint(20) unsigned NOT NULL default '0', 128 PRIMARY KEY (tag_id) 129 ); 130 CREATE TABLE $wpdb->tagged ( 131 tag_id bigint(20) unsigned NOT NULL default '0', 132 post_id bigint(20) unsigned NOT NULL default '0', 133 PRIMARY KEY (tag_id,post_id), 134 KEY tag_id_index (tag_id), 135 KEY post_id_index (post_id) 122 136 ); 123 137 CREATE TABLE $wpdb->users ( -
trunk/wp-includes/functions.php
r4820 r4831 204 204 global $wpdb; 205 205 206 // prevent non-existent options from triggering multiple queries207 if ( true === wp_cache_get($setting, 'notoptions') )208 return false;209 210 206 $value = wp_cache_get($setting, 'options'); 211 207 … … 220 216 $value = $row->option_value; 221 217 wp_cache_set($setting, $value, 'options'); 222 } else { // option does not exist, so we must cache its non-existence 223 wp_cache_set($setting, true, 'notoptions'); 218 } else { 224 219 return false; 225 220 } … … 280 275 } 281 276 282 if ( true === wp_cache_get($option_name, 'notoptions') )283 wp_cache_delete($option_name, 'notoptions');284 285 277 $_newvalue = $newvalue; 286 278 $newvalue = maybe_serialize($newvalue); … … 302 294 global $wpdb; 303 295 304 // Make sure the option doesn't already exist we can check the cache before we ask for a db query 305 if ( true === wp_cache_get($name, 'notoptions') ) 306 wp_cache_delete($name, 'notoptions'); 307 else 308 if ( false !== get_option($name) ) 309 return; 296 // Make sure the option doesn't already exist 297 if ( false !== get_option($name) ) 298 return; 310 299 311 300 $value = maybe_serialize($value); -
trunk/wp-includes/post.php
r4821 r4831 522 522 } 523 523 $post_cat = $post_category[0]; 524 525 if ( empty($post_tags) ) 526 $post_tags = array(); 524 527 525 528 if ( empty($post_author) ) … … 647 650 648 651 wp_set_post_categories($post_ID, $post_category); 652 wp_set_post_tags($post_ID, $post_tags); 649 653 650 654 if ( 'page' == $post_type ) { -
trunk/wp-includes/version.php
r4785 r4831 4 4 5 5 $wp_version = '2.2-bleeding'; 6 $wp_db_version = 4 772;6 $wp_db_version = 4815; 7 7 8 8 ?> -
trunk/wp-includes/wp-db.php
r4741 r4831 35 35 var $optiongroup_options; 36 36 var $postmeta; 37 var $tags; 38 var $tagged; 37 39 38 40 /** -
trunk/wp-settings.php
r4763 r4831 117 117 $wpdb->postmeta = $wpdb->prefix . 'postmeta'; 118 118 $wpdb->usermeta = $wpdb->prefix . 'usermeta'; 119 $wpdb->tags = $wpdb->prefix . 'tags'; 120 $wpdb->tagged = $wpdb->prefix . 'tagged'; 119 121 120 122 if ( defined('CUSTOM_USER_TABLE') )
Note: See TracChangeset
for help on using the changeset viewer.