Changeset 3092
- Timestamp:
- 11/15/2005 10:55:24 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r3079 r3092 60 60 add_meta($post_ID); 61 61 62 // Reunite any orphaned subposts with their parent62 // Reunite any orphaned attachments with their parent 63 63 if ( $_POST['temp_ID'] ) 64 64 relocate_children($_POST['temp_ID'], $post_ID); -
trunk/wp-admin/inline-uploading.php
r3073 r3092 6 6 die(__('You do not have permission to edit posts.')); 7 7 8 $wpvarstoreset = array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', ' object', 'flickrtag');8 $wpvarstoreset = array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment', 'flickrtag'); 9 9 10 10 for ($i=0; $i<count($wpvarstoreset); $i += 1) { … … 38 38 case 'delete': 39 39 40 wp_delete_ object($object);40 wp_delete_attachment($attachment); 41 41 42 42 header("Location: ".basename(__FILE__)."?post=$post&all=$all&action=view&start=$start"); … … 56 56 $filename = basename($file); 57 57 58 // Construct the object array59 $ object = array(58 // Construct the attachment array 59 $attachment = array( 60 60 'post_title' => $imgtitle ? $imgtitle : $filename, 61 61 'post_content' => $descr, 62 'post_status' => ' object',62 'post_status' => 'attachment', 63 63 'post_parent' => $post, 64 'post_ type' => $_FILES['image']['type'],64 'post_mime_type' => $_FILES['image']['type'], 65 65 'guid' => $url 66 66 ); 67 67 68 68 // Save the data 69 $id = wp_ attach_object($object, $post);70 71 // Generate the object's postmeta.69 $id = wp_insert_attachment($attachment, $file, $post); 70 71 // Generate the attachment's postmeta. 72 72 $imagesize = getimagesize($file); 73 73 $imagedata['width'] = $imagesize['0']; … … 82 82 if ( $imagedata['width'] * $imagedata['height'] < 3 * 1024 * 1024 ) { 83 83 if ( $imagedata['width'] > 128 && $imagedata['width'] >= $imagedata['height'] * 4 / 3 ) 84 $error = wp_create_thumbnail($file ['file'], 128);84 $error = wp_create_thumbnail($file, 128); 85 85 elseif ( $imagedata['height'] > 96 ) 86 86 $error = wp_create_thumbnail($file, 96); … … 110 110 111 111 if ( $last ) 112 $start = $wpdb->get_var("SELECT count(ID) FROM $wpdb->posts WHERE post_status = ' object' AND left(post_type, 5) = 'image' $and_post") - $num;112 $start = $wpdb->get_var("SELECT count(ID) FROM $wpdb->posts WHERE post_status = 'attachment' AND left(post_mime_type, 5) = 'image' $and_post") - $num; 113 113 else 114 114 $start = (int) $start; … … 120 120 $sort = "ID"; 121 121 122 $images = $wpdb->get_results("SELECT ID, post_date, post_title, guid FROM $wpdb->posts WHERE post_status = ' object' AND left(post_type, 5) = 'image' $and_post ORDER BY $sort LIMIT $start, $double", ARRAY_A);122 $images = $wpdb->get_results("SELECT ID, post_date, post_title, guid FROM $wpdb->posts WHERE post_status = 'attachment' AND left(post_mime_type, 5) = 'image' $and_post ORDER BY $sort LIMIT $start, $double", ARRAY_A); 123 123 124 124 if ( count($images) > $num ) { … … 144 144 $images = array_slice( $images, 0, $num ); 145 145 $__delete = __('DELETE'); 146 $__subpost_on = __('SUBPOST <strong>ON</strong>'); 147 $__subpost_off = __('SUBPOST <strong>OFF</strong>'); 146 $__attachment_on = __('ATTACHMENT <strong>ON</strong>'); 148 147 $__thumbnail_on = __('THUMBNAIL <strong>ON</strong>'); 149 148 $__thumbnail_off = __('THUMBNAIL <strong>OFF</strong>'); … … 152 151 $__confirmdelete = __('Delete this photo from the server?'); 153 152 $__nothumb = __('There is no thumbnail associated with this photo.'); 154 $images_script .= " subposton = '$__subpost_on';\nsubpostoff = '$__subpost_off';\n";153 $images_script .= "attachmenton = '$__attachment_on';\nattachmentoff = '$__attachment_off';\n"; 155 154 $images_script .= "thumbnailon = '$__thumbnail_on';\nthumbnailoff = '$__thumbnail_off';\n"; 156 155 foreach ( $images as $key => $image ) { 157 156 $meta = get_post_meta($image['ID'], 'imagedata', true); 158 157 if (!is_array($meta)) { 159 wp_delete_ object($image['ID']);158 wp_delete_attachment($image['ID']); 160 159 continue; 161 160 } … … 176 175 $xpadding = (128 - $image['uwidth']) / 2; 177 176 $ypadding = (96 - $image['uheight']) / 2; 178 $ object = $image['ID'];177 $attachment = $image['ID']; 179 178 $images_style .= "#target$i img { padding: {$ypadding}px {$xpadding}px; }\n"; 180 $href = get_ subpost_link($object);179 $href = get_attachment_link($attachment); 181 180 $images_script .= "href".$i."a = '$href';\nhref".$i."b = '{$image['guid']}';\n"; 182 181 $images_html .= " 183 182 <div id='target$i' class='imagewrap left'> 184 183 <div id='popup$i' class='popup'> 185 <a id=\"L$i\" onclick=\"toggleLink($i);return false;\" href=\"javascript:void();\">$__ subpost_on</a>184 <a id=\"L$i\" onclick=\"toggleLink($i);return false;\" href=\"javascript:void();\">$__attachment_on</a> 186 185 <a id=\"I$i\" onclick=\"if($thumb)toggleImage($i);else alert('$__nothumb');return false;\" href=\"javascript:void();\">$thumbtext</a> 187 <a onclick=\"return confirm('$__confirmdelete')\" href=\"".basename(__FILE__)."?action=delete& object=$object&all=$all&start=$start&post=$post\">$__delete</a>186 <a onclick=\"return confirm('$__confirmdelete')\" href=\"".basename(__FILE__)."?action=delete&attachment=$attachment&all=$all&start=$start&post=$post\">$__delete</a> 188 187 <a onclick=\"popup.style.display='none';return false;\" href=\"javascript:void()\">$__close</a> 189 188 </div> … … 245 244 o=document.getElementById('link'+n); 246 245 oi=document.getElementById('L'+n); 247 if ( oi.innerHTML == subposton ) {246 if ( oi.innerHTML == attachmenton ) { 248 247 o.href = eval('href'+n+'b'); 249 oi.innerHTML = subpostoff;248 oi.innerHTML = attachmentoff; 250 249 } else { 251 250 o.href = eval('href'+n+'a'); 252 oi.innerHTML = subposton;251 oi.innerHTML = attachmenton; 253 252 } 254 253 } -
trunk/wp-admin/upgrade-functions.php
r3091 r3092 31 31 } 32 32 33 if ( $wp_current_db_version < 309 1)33 if ( $wp_current_db_version < 3092 ) 34 34 upgrade_160(); 35 35 … … 241 241 242 242 function upgrade_160() { 243 global $wpdb, $table_prefix ;244 243 global $wpdb, $table_prefix, $wp_current_db_version; 244 245 245 populate_roles_160(); 246 246 … … 299 299 $count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->post2cat, $wpdb->posts WHERE $wpdb->posts.ID=$wpdb->post2cat.post_id AND post_status='publish' AND category_id = '$cat_id'"); 300 300 $wpdb->query("UPDATE $wpdb->categories SET category_count = '$count' WHERE cat_ID = '$cat_id'"); 301 } 302 } 303 304 // Some alpha versions used a post status of object instead of attachment and put 305 // the mime type in post_type instead of post_mime_type. 306 if ( $wp_current_db_version > 2541 && $wp_current_db_version <= 3091 ) { 307 $objects = $wpdb->get_results("SELECT ID, post_type FROM $wpdb->posts WHERE post_status = 'object'"); 308 foreach ($objects as $object) { 309 $wpdb->query("UPDATE $wpdb->posts SET post_status = 'attachment', 310 post_mime_type = '$object->post_type', 311 post_type = '', 312 guid = '$guid' 313 WHERE ID = $object->ID"); 314 315 $meta = get_post_meta($postid, 'imagedata', true); 316 if ( ! empty($meta['file']) ) 317 add_post_meta($object->ID, '_wp_attached_file', $meta['file']); 301 318 } 302 319 } -
trunk/wp-admin/upgrade-schema.php
r3041 r3092 107 107 post_category int(4) NOT NULL default '0', 108 108 post_excerpt text NOT NULL, 109 post_status enum('publish','draft','private','static','object' ) NOT NULL default 'publish',109 post_status enum('publish','draft','private','static','object','attachment') NOT NULL default 'publish', 110 110 comment_status enum('open','closed','registered_only') NOT NULL default 'open', 111 111 ping_status enum('open','closed') NOT NULL default 'open', … … 121 121 menu_order int(11) NOT NULL default '0', 122 122 post_type varchar(100) NOT NULL, 123 post_mime_type varchar(100) NOT NULL, 123 124 PRIMARY KEY (ID), 124 125 KEY post_name (post_name) -
trunk/wp-includes/classes.php
r3089 r3092 31 31 var $is_comments_popup = false; 32 32 var $is_admin = false; 33 var $is_ subpost = false;33 var $is_attachment = false; 34 34 35 35 function init_query_flags() { … … 51 51 $this->is_paged = false; 52 52 $this->is_admin = false; 53 $this->is_ subpost = false;53 $this->is_attachment = false; 54 54 } 55 55 … … 92 92 $qv['p'] = (int) $qv['p']; 93 93 94 if ( ('' != $qv['subpost']) || $qv['subpost_id'] ) { 94 // Compat. Map subpost to attachment. 95 if ( '' != $qv['subpost'] ) 96 $qv['attachment'] = $qv['subpost']; 97 if ( '' != $qv['subpost_id'] ) 98 $qv['attachment_id'] = $qv['subpost_id']; 99 100 if ( ('' != $qv['attachment']) || $qv['attachment_id'] ) { 95 101 $this->is_single = true; 96 $this->is_ subpost = true;102 $this->is_attachment = true; 97 103 } 98 104 … … 215 221 } 216 222 217 if ( ! ($this->is_ subpost || $this->is_archive || $this->is_single || $this->is_page || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_comments_popup)) {223 if ( ! ($this->is_attachment || $this->is_archive || $this->is_single || $this->is_page || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_comments_popup)) { 218 224 $this->is_home = true; 219 225 } … … 335 341 } 336 342 343 // Compat. Map subpost to attachment. 344 if ( '' != $q['subpost'] ) 345 $q['attachment'] = $q['subpost']; 346 if ( '' != $q['subpost_id'] ) 347 $q['attachment_id'] = $q['subpost_id']; 348 337 349 if ('' != $q['name']) { 338 350 $q['name'] = sanitize_title($q['name']); … … 342 354 $q['name'] = $q['pagename']; 343 355 $where .= " AND post_name = '" . $q['pagename'] . "'"; 344 } elseif ('' != $q[' subpost']) {345 $q[' subpost'] = sanitize_title($q['subpost']);346 $q['name'] = $q[' subpost'];347 $where .= " AND post_name = '" . $q[' subpost'] . "'";356 } elseif ('' != $q['attachment']) { 357 $q['attachment'] = sanitize_title($q['attachment']); 358 $q['name'] = $q['attachment']; 359 $where .= " AND post_name = '" . $q['attachment'] . "'"; 348 360 } 349 361 … … 356 368 $q['p'] = intval($q['comments_popup']); 357 369 358 // If a subpost is requested by number, let it supercede any post number.359 if ( ($q[' subpost_id'] != '') && (intval($q['subpost_id']) != 0) )360 $q['p'] = (int) $q[' subpost_id'];370 // If a attachment is requested by number, let it supercede any post number. 371 if ( ($q['attachment_id'] != '') && (intval($q['attachment_id']) != 0) ) 372 $q['p'] = (int) $q['attachment_id']; 361 373 362 374 // If a post number is specified, load that post … … 539 551 } 540 552 541 if ( $this->is_ subpost ) {542 $where .= ' AND (post_status = " object")';553 if ( $this->is_attachment ) { 554 $where .= ' AND (post_status = "attachment")'; 543 555 } elseif ($this->is_page) { 544 556 $where .= ' AND (post_status = "static")'; … … 554 566 } 555 567 556 if (! $this->is_ subpost )557 $where .= ' AND post_status != " object"';568 if (! $this->is_attachment ) 569 $where .= ' AND post_status != "attachment"'; 558 570 559 571 // Apply filters on where and join prior to paging so that any … … 1200 1212 $sub1feed2 = $sub1 . $feedregex2; 1201 1213 $sub1 .= '?$'; 1202 $sub2 = $submatchbase . '/ subpost/([^/]+)/';1214 $sub2 = $submatchbase . '/attachment/([^/]+)/'; 1203 1215 $sub2tb = $sub2 . $trackbackregex; 1204 1216 $sub2feed = $sub2 . $feedregex; 1205 1217 $sub2feed2 = $sub2 . $feedregex2; 1206 1218 $sub2 .= '?$'; 1207 $subquery = $index . '? subpost=' . $this->preg_index(1);1219 $subquery = $index . '?attachment=' . $this->preg_index(1); 1208 1220 $subtbquery = $subquery . '&tb=1'; 1209 1221 $subfeedquery = $subquery . '&feed=' . $this->preg_index(2); … … 1382 1394 1383 1395 class WP { 1384 var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', ' subpost', 'subpost_id');1396 var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id'); 1385 1397 1386 1398 var $private_query_vars = array('posts_per_page', 'posts_per_archive_page', 'what_to_show', 'showposts', 'nopaging'); -
trunk/wp-includes/functions-post.php
r3091 r3092 132 132 $wpdb->query( 133 133 "INSERT INTO $wpdb->posts 134 (post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent, menu_order, post_ type)134 (post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type) 135 135 VALUES 136 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$post_excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_ type')");136 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$post_excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type')"); 137 137 $post_ID = $wpdb->insert_id; 138 138 } … … 204 204 } 205 205 206 function wp_ attach_object($object, $post_parent = 0) {206 function wp_insert_attachment($object, $file, $post_parent = 0) { 207 207 global $wpdb, $user_ID; 208 208 … … 218 218 $comment_status = apply_filters('comment_status_pre', $comment_status); 219 219 $ping_status = apply_filters('ping_status_pre', $ping_status); 220 $post_ type = apply_filters('post_type_pre', $post_type);220 $post_mime_type = apply_filters('post_mime_type_pre', $post_mime_type); 221 221 222 222 // Make sure we set a valid category … … 229 229 $post_author = $user_ID; 230 230 231 $post_status = ' object';231 $post_status = 'attachment'; 232 232 233 233 // Get the post ID. … … 291 291 post_parent = '$post_parent', 292 292 menu_order = '$menu_order', 293 post_ type = '$post_type',293 post_mime_type = '$post_mime_type', 294 294 guid = '$guid' 295 295 WHERE ID = $post_ID"); … … 297 297 $wpdb->query( 298 298 "INSERT INTO $wpdb->posts 299 (post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent, menu_order, post_ type, guid)299 (post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) 300 300 VALUES 301 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$post_excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_ type', '$guid')");301 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$post_excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type', '$guid')"); 302 302 $post_ID = $wpdb->insert_id; 303 303 } … … 310 310 wp_set_post_cats('', $post_ID, $post_category); 311 311 312 add_post_meta($post_ID, '_wp_attached_file', $file); 313 312 314 clean_post_cache($post_ID); 313 315 314 316 if ( $update) { 315 do_action('edit_ object', $post_ID);317 do_action('edit_attachment', $post_ID); 316 318 } else { 317 do_action('a ttach_object', $post_ID);319 do_action('add_attachment', $post_ID); 318 320 } 319 321 … … 321 323 } 322 324 323 function wp_delete_ object($postid) {325 function wp_delete_attachment($postid) { 324 326 global $wpdb; 325 327 $postid = (int) $postid; … … 328 330 return $post; 329 331 330 if ( ' object' != $post->post_status )332 if ( 'attachment' != $post->post_status ) 331 333 return false; 332 334 333 $obj_meta = get_post_meta($postid, 'imagedata', true); 335 $meta = get_post_meta($postid, 'imagedata', true); 336 $file = get_post_meta($postid, '_wp_attached_file', true); 334 337 335 338 $wpdb->query("DELETE FROM $wpdb->posts WHERE ID = $postid"); … … 341 344 $wpdb->query("DELETE FROM $wpdb->postmeta WHERE post_id = $postid"); 342 345 343 @ unlink($obj_meta['file']); 344 345 do_action('delete_object', $postid); 346 if ( ! empty($meta['file']) ) 347 @ unlink($meta['file']); 348 349 if ( ! empty($file) ) 350 @ unlink($file); 351 352 do_action('delete_attachment', $postid); 346 353 347 354 return $post; … … 745 752 746 753 if ( is_object($post) ) { 747 if ( (' object' == $post->post_status) && $post->post_parent && ($post->ID != $post->post_parent) )754 if ( ('attachment' == $post->post_status) && $post->post_parent && ($post->ID != $post->post_parent) ) 748 755 return get_post_status($post->post_parent); 749 756 else -
trunk/wp-includes/functions.php
r3071 r3092 1398 1398 } 1399 1399 1400 function is_ subpost () {1401 global $wp_query; 1402 1403 return $wp_query->is_ subpost;1400 function is_attachment () { 1401 global $wp_query; 1402 1403 return $wp_query->is_attachment; 1404 1404 } 1405 1405 … … 1895 1895 } 1896 1896 1897 function get_ subpost_template() {1897 function get_attachment_template() { 1898 1898 global $posts; 1899 $type = explode('/', $posts[0]->post_ type);1899 $type = explode('/', $posts[0]->post_mime_type); 1900 1900 if ( $template = get_query_template($type[0]) ) 1901 1901 return $template; … … 1905 1905 return $template; 1906 1906 else 1907 return get_query_template(' subpost');1907 return get_query_template('attachment'); 1908 1908 } 1909 1909 -
trunk/wp-includes/template-functions-links.php
r2958 r3092 45 45 if ( $post->post_status == 'static' ) 46 46 return get_page_link($post->ID); 47 elseif ($post->post_status == ' object')48 return get_ subpost_link($post->ID);47 elseif ($post->post_status == 'attachment') 48 return get_attachment_link($post->ID); 49 49 50 50 $permalink = get_settings('permalink_structure'); … … 103 103 } 104 104 105 function get_ subpost_link($id = false) {105 function get_attachment_link($id = false) { 106 106 global $post, $wp_rewrite; 107 107 … … 121 121 122 122 if (! $link ) { 123 $link = get_bloginfo('home') . "/? subpost_id=$id";124 } 125 126 return apply_filters(' object_link', $link, $id);123 $link = get_bloginfo('home') . "/?attachment_id=$id"; 124 } 125 126 return apply_filters('attachment_link', $link, $id); 127 127 } 128 128 … … 210 210 get_currentuserinfo(); 211 211 212 if ( !user_can_edit_post($user_ID, $post->ID) || is_ subpost() ) {212 if ( !user_can_edit_post($user_ID, $post->ID) || is_attachment() ) { 213 213 return; 214 214 } … … 235 235 global $post, $wpdb; 236 236 237 if( !is_single() || is_ subpost() )237 if( !is_single() || is_attachment() ) 238 238 return null; 239 239 … … 266 266 global $post, $wpdb; 267 267 268 if( !is_single() || is_ subpost() )268 if( !is_single() || is_attachment() ) 269 269 return null; 270 270 … … 298 298 299 299 function previous_post_link($format='« %link', $link='%title', $in_same_cat = false, $excluded_categories = '') { 300 if ( is_ subpost() ) {300 if ( is_attachment() ) { 301 301 $post = & get_post($GLOBALS['post']->post_parent); 302 302 $pre = __('Belongs to '); -
trunk/wp-includes/template-functions-post.php
r2991 r3092 438 438 } 439 439 440 function prepend_ object($content) {440 function prepend_attachment($content) { 441 441 global $post; 442 442 443 $p = '<p class=" subpostobject">';443 $p = '<p class="attachment">'; 444 444 445 445 if ( '' != $post->guid ) { 446 if ( substr($post->post_ type, 0, 6) == 'image/' )447 $p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class=" subpostimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>';446 if ( substr($post->post_mime_type, 0, 6) == 'image/' ) 447 $p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class="attachmentimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>'; 448 448 else 449 $p .= __('Attachment') . ' (' . $post->post_ type . ')';449 $p .= __('Attachment') . ' (' . $post->post_mime_type . ')'; 450 450 } else { 451 451 $p .= __('Missing attachment'); -
trunk/wp-includes/template-loader.php
r2958 r3092 17 17 include(get_home_template()); 18 18 exit; 19 } else if ( is_ subpost() && get_subpost_template() ) {20 include(get_ subpost_template());19 } else if ( is_attachment() && get_attachment_template() ) { 20 include(get_attachment_template()); 21 21 exit; 22 22 } else if ( is_single() && get_single_template() ) { 23 if ( is_ subpost() )24 add_filter('the_content', 'prepend_ object');23 if ( is_attachment() ) 24 add_filter('the_content', 'prepend_attachment'); 25 25 include(get_single_template()); 26 26 exit; 27 27 } else if ( is_page() && get_page_template() ) { 28 if ( is_ subpost() )29 add_filter('the_content', 'prepend_ object');28 if ( is_attachment() ) 29 add_filter('the_content', 'prepend_attachment'); 30 30 include(get_page_template()); 31 31 exit; -
trunk/wp-includes/version.php
r3091 r3092 4 4 5 5 $wp_version = '1.6-ALPHA-2-still-dont-use'; 6 $wp_db_version = 309 1;6 $wp_db_version = 3092; 7 7 8 8 ?>
Note: See TracChangeset
for help on using the changeset viewer.