Ticket #7607: wordpress_gallery-2.7.x.patch
| File wordpress_gallery-2.7.x.patch, 21.7 KB (added by ShaneF, 5 years ago) |
|---|
-
wp-admin/includes/media.php
55 55 56 56 $html = get_image_tag($id, $alt, $title, $align, $size); 57 57 58 58 59 $rel = $rel ? ' rel="attachment wp-att-'.attribute_escape($id).'"' : ''; 59 60 60 61 if ( $url ) 61 $html = '<a href="' . clean_url($url) . "\" $rel>$html</a>";62 $html = '<a href="' . clean_url($url) . "\" title=\"". attribute_escape($title) ."\"$rel>$html</a>"; 62 63 63 64 $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); 64 65 … … 256 257 $post['post_title'] = $attachment['post_title']; 257 258 if ( isset($attachment['post_excerpt']) ) 258 259 $post['post_excerpt'] = $attachment['post_excerpt']; 260 if ( isset($attachment['group_number']) ) 261 $post['group_number'] = $attachment['group_number']; 259 262 if ( isset($attachment['menu_order']) ) 260 263 $post['menu_order'] = $attachment['menu_order']; 261 264 … … 274 277 wp_set_object_terms($attachment_id, array_map('trim', preg_split('/,+/', $attachment[$t])), $t, false); 275 278 } 276 279 277 if ( isset($_POST['insert-gallery']) ) 278 return media_send_to_editor('[gallery]'); 279 280 if ( isset($_POST['insert-gallery']) ) { 281 if ( isset($_POST['gallery_insert']) ) { 282 return media_send_to_editor('[gallery group="'.$_POST['gallery_insert'].'"]'); 283 } else { 284 return media_send_to_editor('[gallery]'); 285 } 286 287 } 288 289 if ( isset($_POST['gallery_delete']) && !is_null($_POST['gallery_delete']) ) 290 wp_delete_gallery($post, $_POST['gallery_delete']); 291 292 if ( isset($_POST['new-gallery']) ) 293 wp_new_gallery($post); 294 280 295 if ( isset($_POST['send']) ) { 281 296 $keys = array_keys($_POST['send']); 282 297 $send_id = (int) array_shift($keys); … … 317 332 $align = attribute_escape($_POST['insertonly']['align']); 318 333 $class = " class='align$align'"; 319 334 } 335 if ( isset($_POST['insertonly']['title']) ) { 336 $title = " title='".attribute_escape($_POST['insertonly']['title'])."'"; 337 } 320 338 if ( !empty($src) ) 321 $html = "<img src='$src' alt='$alt'$ class />";339 $html = "<img src='$src' alt='$alt'$title$class />"; 322 340 return media_send_to_editor($html); 323 341 } 324 342 … … 637 655 add_filter('attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2); 638 656 639 657 function image_media_send_to_editor($html, $attachment_id, $attachment) { 658 640 659 $post =& get_post($attachment_id); 641 660 if ( substr($post->post_mime_type, 0, 5) == 'image' ) { 642 661 $url = $attachment['url']; … … 662 681 add_filter('media_send_to_editor', 'image_media_send_to_editor', 10, 3); 663 682 664 683 function get_attachment_fields_to_edit($post, $errors = null) { 684 665 685 if ( is_int($post) ) 666 686 $post =& get_post($post); 667 687 if ( is_array($post) ) … … 691 711 'html' => image_link_input_fields($post, get_option('image_default_link_type')), 692 712 'helps' => __('Enter a link URL or click above for presets.'), 693 713 ), 714 'group_number' => array( 715 'value' => $edit_post->group_number 716 ), 694 717 'menu_order' => array( 695 718 'label' => __('Order'), 696 719 'value' => $edit_post->menu_order … … 726 749 return $form_fields; 727 750 } 728 751 729 function get_media_items( $post_id, $errors ) { 752 function get_media_items( $post_id, $group, $errors ) { 753 global $wpdb; 730 754 if ( $post_id ) { 731 755 $post = get_post($post_id); 732 if ( $post && $post->post_type == 'attachment' ) 756 if ( $post && $post->post_type == 'attachment' ) { 733 757 $attachments = array($post->ID => $post); 734 else 735 $attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'orderby' => 'menu_order ASC, ID', 'order' => 'DESC') ); 758 } else { 759 $attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'group_number' => $group, 'orderby' => 'menu_order ASC, ID', 'order' => 'DESC')); 760 $images_in_group = intval($wpdb->get_var($wpdb->prepare("SELECT count(*) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_parent = '%d' AND group_number = %d", $post_id, $group))); 761 762 if ($images_in_group == 0) { 763 $output = "\n<div class='media-item media-no-items child-of-$post_id preloaded'><div class='progress'><div class='bar'></div></div><div id='media-upload-error-$id'></div><div class='filename'></div><div class='filename new'>". __("No images in this group. Move items to this group.") ."</div></div>"; 764 return $output; 765 } 766 } 736 767 } else { 737 768 if ( is_array($GLOBALS['wp_the_query']->posts) ) 738 769 foreach ( $GLOBALS['wp_the_query']->posts as $attachment ) … … 743 774 return ''; 744 775 745 776 foreach ( $attachments as $id => $attachment ) 746 if ( $item = get_media_item( $id, array( 'errors' => isset($errors[$id]) ? $errors[$id] : null) ) )777 if ( $item = get_media_item( $id, $group, array( 'errors' => isset($errors[$id]) ? $errors[$id] : null) ) ) 747 778 $output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div class='progress'><div class='bar'></div></div><div id='media-upload-error-$id'></div><div class='filename'></div>$item\n</div>"; 748 779 749 780 return $output; 750 781 } 751 782 752 function get_media_item( $attachment_id, $ args = null ) {783 function get_media_item( $attachment_id, $group = null, $args = null ) { 753 784 global $redir_tab; 754 785 755 786 $default_args = array( 'errors' => null, 'send' => true, 'delete' => true, 'toggle' => true ); … … 771 802 772 803 $post = get_post($attachment_id); 773 804 805 if (!is_null($group) && ($post->group_number != $group)) { return; } 806 774 807 $filename = basename($post->guid); 775 808 $title = attribute_escape($post->post_title); 776 809 $description = attribute_escape($post->post_content); … … 804 837 $gallery = ( (isset($_REQUEST['tab']) && 'gallery' == $_REQUEST['tab']) || (isset($redir_tab) && 'gallery' == $redir_tab) ) ? true : false; 805 838 $order = ''; 806 839 807 foreach ( $form_fields as $key => $val ) { 840 foreach ( $form_fields as $key => $val ) { 841 808 842 if ( 'menu_order' == $key ) { 809 843 if ( $gallery ) 810 844 $order = '<div class="menu_order"> <input class="menu_order_input" type="text" id="attachments['.$attachment_id.'][menu_order]" name="attachments['.$attachment_id.'][menu_order]" value="'.$val['value'].'" /></div>'; … … 812 846 $order = '<input type="hidden" name="attachments['.$attachment_id.'][menu_order]" value="'.$val['value'].'" />'; 813 847 814 848 unset($form_fields['menu_order']); 815 break;816 849 } 850 851 if ( 'group_number' == $key ) { 852 $groupnum = '<input type="hidden" class="group-value" name="attachments['.$attachment_id.'][group_number]" value="'.$val['value'].'" />'; 853 unset($form_fields['group_number']); 854 } 817 855 } 818 856 819 857 $item = " 820 858 $type 821 859 $toggle_links 822 860 $order 861 $groupnum 823 862 <div class='filename new'>$display_title</div> 824 863 <table class='slidetoggle describe $class'> 825 864 <thead class='media-item-info'> … … 1000 1039 <p> 1001 1040 <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a> 1002 1041 </p> 1003 1004 1042 <br class="clear" /> 1005 1043 <?php if ( is_lighttpd_before_150() ): ?> 1006 1044 <p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p> … … 1082 1120 html = '<img alt="'+alt+'" src="'+f.src.value+'"'+title+cls+' width="'+t.width+'" height="'+t.height+'" />'; 1083 1121 1084 1122 if ( f.url.value ) 1085 html = '<a href="'+f.url.value+'" >'+html+'</a>';1123 html = '<a href="'+f.url.value+'"'+title+'>'+html+'</a>'; 1086 1124 1087 1125 if ( caption ) 1088 1126 html = '[caption id="" align="'+t.align+'" width="'+t.width+'" caption="'+caption+'"]'+html+'[/caption]'; … … 1139 1177 } 1140 1178 1141 1179 function media_upload_gallery_form($errors) { 1142 global $ redir_tab;1180 global $wpdb, $redir_tab; 1143 1181 1144 1182 $redir_tab = 'gallery'; 1145 1183 media_upload_header(); 1146 1184 1147 1185 $post_id = intval($_REQUEST['post_id']); 1186 $group_results = $wpdb->get_row($wpdb->prepare("SELECT groups FROM $wpdb->posts WHERE ID = %d", $post_id)); 1187 $groups = split(",", $group_results->groups); 1188 1148 1189 $form_action_url = admin_url("media-upload.php?type={$GLOBALS['type']}&tab=gallery&post_id=$post_id"); 1149 1190 ?> 1150 1191 … … 1154 1195 var preloaded = $(".media-item.preloaded"); 1155 1196 if ( preloaded.length > 0 ) { 1156 1197 preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');}); 1157 updateMediaForm();1158 1198 } 1199 1200 jQuery("a.del-group").click(function () { 1201 1202 var deleteConfirmation = confirm('<?php _e("Are you sure you want to delete this gallery group?"); ?>'); 1203 if (!deleteConfirmation) { return; } 1204 if (jQuery("#media-group-" + jQuery(this).attr('value') + " .media-item input.group-value").length) 1205 { 1206 jQuery.each(jQuery("#media-group-delete-" + jQuery(this).attr('value') + " .media-item input.group-value"), function(i, id) { 1207 jQuery(id)[0].value = 0; // we are going to set all the items to group 0 1208 }); 1209 } 1210 jQuery("#gallery-delete").val( jQuery(this).attr('value') ); // set the gallery we are deleting 1211 jQuery("#media-group-" + jQuery(this).attr('value')).hide(); // hide the gallery and then... 1212 jQuery(".savebutton").click(); 1213 1214 }); 1215 1216 jQuery("a.insert-group").click(function () { 1217 jQuery("#gallery-insert").val( jQuery(this).attr('value') ); // set the gallery we are inserting 1218 jQuery(".insert-gallery").click(); 1219 }); 1220 1221 1159 1222 }); 1160 1223 --> 1161 1224 </script> … … 1163 1226 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form validate" id="gallery-form"> 1164 1227 <?php wp_nonce_field('media-form'); ?> 1165 1228 <?php //media_upload_form( $errors ); ?> 1229 1230 <div id="media-items"> 1231 <?php 1232 foreach ($groups as $group => $group_number) 1233 { 1234 ?> 1235 <div id="media-group-<?php echo $group_number; ?>" class="media-groups"> 1236 <input type="hidden" id="media-group-value-<?php echo $group_number; ?>" value="<?php echo $group_number; ?>" /> 1166 1237 <table class="widefat"> 1167 1238 <thead><tr> 1168 <th><?php _e('Media'); ?></th> 1239 <th> 1240 <?php 1241 if ($group_number > 0) { 1242 1243 $delete = "<a href=\"#media-group-delete-value-".$group_number."\" value=\"".$group_number."\" class=\"del-group\">" . __('Delete Group') . "</a>"; 1244 $insert = "<a href=\"#media-group-insert-value-".$group_number."\" value=\"".$group_number."\" class=\"insert-group\">" . __('Insert Group') . "</a>"; 1245 $group_link = "<small>(".$delete." | " .$insert.")</small>"; 1246 1247 _e('Media Group ('.$group_number.'): ' . $group_link); 1248 } else { 1249 _e('Media: Non-grouped items.'); 1250 } 1251 ?> 1252 </th> 1169 1253 <th class="order-head"><?php _e('Order'); ?></th> 1170 1254 </tr></thead> 1171 1255 </table> 1172 <div id="media-items"> 1173 <?php echo get_media_items($post_id, $errors); ?> 1256 <?php echo get_media_items($post_id, $group_number, $errors); ?> 1174 1257 </div> 1258 <?php 1259 } 1260 ?> 1261 </div> 1175 1262 <p class="ml-submit"> 1176 1263 <input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" /> 1177 <input type="submit" class="button insert-gallery" name="insert-gallery" value="<?php echo attribute_escape( __( 'Insert gallery into post' ) ); ?>" /> 1264 <input type="submit" class="button new-gallery" name="new-gallery" value="<?php echo attribute_escape( __( 'Create new gallery' ) ); ?>" /> 1265 <input type="submit" class="button insert-gallery" name="insert-gallery" value="<?php echo attribute_escape( __( 'Insert full gallery into post' ) ); ?>" /> 1266 <input type="hidden" name="gallery_delete" id="gallery-delete" value="" /> 1267 <input type="hidden" name="gallery_insert" id="gallery-insert" value="" /> 1178 1268 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 1179 1269 <input type="hidden" name="type" value="<?php echo attribute_escape( $GLOBALS['type'] ); ?>" /> 1180 1270 <input type="hidden" name="tab" value="<?php echo attribute_escape( $GLOBALS['tab'] ); ?>" /> 1181 1271 </p> 1182 1272 </form> 1273 1274 <script type="text/javascript"> 1275 <!-- 1276 updateMediaForm(); 1277 --> 1278 </script> 1279 1183 1280 <?php 1184 1281 } 1185 1282 … … 1319 1416 </script> 1320 1417 1321 1418 <div id="media-items"> 1322 <?php echo get_media_items(null, $errors); ?>1419 <?php echo get_media_items(null, null, $errors); ?> 1323 1420 </div> 1324 1421 <p class="ml-submit"> 1325 1422 <input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" /> -
wp-admin/includes/schema.php
119 119 post_content_filtered text NOT NULL, 120 120 post_parent bigint(20) NOT NULL default '0', 121 121 guid varchar(255) NOT NULL default '', 122 groups varchar(255) NOT NULL default '0', 123 group_number int(11) NOT NULL default '0', 122 124 menu_order int(11) NOT NULL default '0', 123 125 post_type varchar(20) NOT NULL default 'post', 124 126 post_mime_type varchar(100) NOT NULL default '', -
wp-admin/includes/upgrade.php
764 764 function upgrade_270() { 765 765 if ( $wp_current_db_version < 8530 ) 766 766 populate_roles_270(); 767 768 add_clean_index($wpdb->posts, 'groups'); 769 add_clean_index($wpdb->posts, 'group_number'); 767 770 } 768 771 769 772 -
wp-admin/js/gallery.js
1 1 jQuery(function($) { 2 2 var gallerySortable; 3 3 4 var gallerySortableInit = function() { 4 5 gallerySortable = $('#media-items').sortable( { 5 6 items: '.media-item', 6 7 placeholder: 'sorthelper', 7 8 axis: 'y', 8 9 distance: 2, 9 update: gallery Reorder10 update: galleryHandle, 10 11 } ); 11 12 } 12 13 // When an update has occurred, adjust the order for each item 13 14 var galleryHandle = function (e, sort) { 15 galleryReorder(e, sort); 16 gallerySortGroups(); 17 } 18 19 // @todo: fix me! 20 // When an update has occurred, adjust the order for each item.. 14 21 var galleryReorder = function(e, sort) { 22 var o = 0; 15 23 jQuery.each(sort['element'].sortable('toArray'), function(i, id) { 16 jQuery('#' + id + ' .menu_order input')[0].value = (1+i); 24 if (id) 25 { 26 o++; 27 jQuery('#' + id + ' .menu_order input')[0].value = o; 28 } 17 29 }); 18 30 } 19 31 32 var gallerySortGroups = function () { 33 var mediaGroups = jQuery(".media-groups").length; 34 for (g = 0; g < mediaGroups; g++) 35 { 36 jQuery.each(jQuery("#media-group-" + g + " .media-item input.group-value"), function(i, id) { 37 jQuery(id)[0].value = g; 38 }); 39 } 40 } 41 20 42 // initialize sortable 21 43 gallerySortableInit(); 22 44 }); -
wp-admin/post.php
83 83 check_admin_referer('add-post'); 84 84 85 85 if ( 'post-quickpress-publish' == $action ) 86 87 $_POST['comment_status'] = get_option('default_comment_status'); 88 $_POST['ping_status'] = get_option('default_ping_status'); 89 86 90 $_POST['publish'] = 'publish'; // tell write_post() to publish 87 91 88 92 if ( !empty( $_POST['quickpress_post_ID'] ) ) { -
wp-includes/js/swfupload/handlers.js
125 125 } 126 126 127 127 // Only show Save buttons when there is at least one file. 128 if ( jQuery('#media-items >*').not('.media-blank').length > 0 )128 if ( jQuery('#media-items .media-item').not('.media-no-items').length > 0 ) 129 129 jQuery('.savebutton').show(); 130 130 else 131 131 jQuery('.savebutton').hide(); 132 132 133 // Only show new Gallery button when there are at least two files. 134 if ( jQuery('#media-items .media-item').not('.media-no-items').length > 1 ) 135 jQuery('.new-gallery').show(); 136 else 137 jQuery('.new-gallery').hide(); 138 133 139 // Only show Gallery button when there are at least two files. 134 if ( jQuery('#media-items >*').length > 1 )140 if ( jQuery('#media-items .media-groups').length > 1 ) 135 141 jQuery('.insert-gallery').show(); 136 142 else 137 143 jQuery('.insert-gallery').hide(); 144 138 145 } 139 146 140 147 function uploadSuccess(fileObj, serverData) { -
wp-includes/media.php
487 487 'icontag' => 'dt', 488 488 'captiontag' => 'dd', 489 489 'columns' => 3, 490 'group' => null, 490 491 'size' => 'thumbnail', 491 492 ), $attr)); 492 493 … … 508 509 $captiontag = tag_escape($captiontag); 509 510 $columns = intval($columns); 510 511 $itemwidth = $columns > 0 ? floor(100/$columns) : 100; 511 512 512 513 $output = apply_filters('gallery_style', " 513 514 <style type='text/css'> 514 515 .gallery { … … 528 529 </style> 529 530 <!-- see gallery_shortcode() in wp-includes/media.php --> 530 531 <div class='gallery'>"); 531 532 532 533 foreach ( $attachments as $id => $attachment ) { 533 $link = wp_get_attachment_link($id, $size, true); 534 $output .= "<{$itemtag} class='gallery-item'>"; 535 $output .= " 536 <{$icontag} class='gallery-icon'> 537 $link 538 </{$icontag}>"; 539 if ( $captiontag && trim($attachment->post_excerpt) ) { 534 535 if (!is_null($group)) { 536 if ($attachment->group_number != $group) { 537 continue; 538 } 539 } else { 540 if ($attachment->group_number == 0) { 541 continue; 542 } 543 } 544 545 $link = wp_get_attachment_link($id, $size, true); 546 $output .= "<{$itemtag} class='gallery-item'>"; 540 547 $output .= " 541 <{$captiontag} class='gallery-caption'> 542 {$attachment->post_excerpt} 543 </{$captiontag}>"; 544 } 545 $output .= "</{$itemtag}>"; 546 if ( $columns > 0 && ++$i % $columns == 0 ) 547 $output .= '<br style="clear: both" />'; 548 <{$icontag} class='gallery-icon'> 549 $link 550 </{$icontag}>"; 551 if ( $captiontag && trim($attachment->post_excerpt) ) { 552 $output .= " 553 <{$captiontag} class='gallery-caption'> 554 {$attachment->post_excerpt} 555 </{$captiontag}>"; 556 } 557 $output .= "</{$itemtag}>"; 558 if ( $columns > 0 && ++$i % $columns == 0 ) 559 $output .= '<br style="clear: both" />'; 548 560 } 549 561 550 562 $output .= " -
wp-includes/post.php
1440 1440 } 1441 1441 1442 1442 // expected_slashed (everything!) 1443 $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'guid' ) );1443 $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'guid', 'groups' ) ); 1444 1444 $data = apply_filters('wp_insert_post_data', $data, $postarr); 1445 1445 $data = stripslashes_deep( $data ); 1446 1446 $where = array( 'ID' => $post_ID ); … … 1513 1513 } 1514 1514 1515 1515 /** 1516 * Insert a new gallery into the post. 1517 * 1518 * @since 2.7.0 1519 * 1520 * @param array $postarr post data 1521 */ 1522 function wp_new_gallery($postarr = array()) 1523 { 1524 if ( is_object($postarr) ) 1525 $postarr = get_object_vars($postarr); 1526 1527 // First, get all of the original fields 1528 $post = wp_get_single_post($postarr['post_parent'], ARRAY_A); 1529 1530 // create new group 1531 $last_group = split(",", $post['groups']); 1532 $new_groups = array(count($last_group) => count($last_group)); 1533 $post_newgroup['groups'] = implode(",", array_merge($last_group, $new_groups)); 1534 1535 // Merge old and new fields with new fields overwriting old ones. 1536 $postarr = array_merge($post, $post_newgroup); 1537 1538 // update the post 1539 wp_update_post($postarr); 1540 1541 } 1542 1543 /** 1544 * 1545 * Delete a gallery and reset the gallery numbers of those items inside the gallery. 1546 * 1547 * @since 2.7.0 1548 * 1549 * @param array $postarr post data 1550 * @param int $gallery_number data 1551 */ 1552 function wp_delete_gallery($postarr = array(), $gallery_number) 1553 { 1554 global $wpdb; 1555 1556 if ( is_object($postarr) ) 1557 $postarr = get_object_vars($postarr); 1558 1559 // First, get all of the original fields 1560 $post = wp_get_single_post($postarr['post_parent'], ARRAY_A); 1561 1562 // groups 1563 $current_groups = split(",", $post['groups']); 1564 $i = 0; 1565 foreach ($current_groups as $item => $value) 1566 { 1567 if ($gallery_number != $value) { 1568 $new_groupnumber = $i; 1569 $newgroup[] = $new_groupnumber; 1570 $wpdb->query($wpdb->prepare("UPDATE $wpdb->posts SET group_number = %d WHERE post_parent = %d AND group_number = %d", $new_groupnumber, $post['ID'], $value)); 1571 $i++; 1572 } 1573 } 1574 $new_groups_update = array("groups" => implode(",", $newgroup)); 1575 1576 // Merge old and new fields with new fields overwriting old ones. 1577 $postarr = array_merge($post, $new_groups_update); 1578 1579 // update the post 1580 wp_update_post($postarr); 1581 } 1582 1583 /** 1516 1584 * Update a post with new post data. 1517 1585 * 1518 1586 * The date does not have to be set for drafts. You can set the date and it will … … 2316 2384 $pinged = ''; 2317 2385 2318 2386 // expected_slashed (everything!) 2319 $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'post_mime_type', 'guid' ) );2387 $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'post_mime_type', 'guid', 'group_number' ) ); 2320 2388 $data = stripslashes_deep( $data ); 2321 2389 2322 2390 if ( $update ) {
