Ticket #5249: 5249b.diff
| File 5249b.diff, 5.5 KB (added by , 18 years ago) |
|---|
-
wp-includes/js/wp-lists.js
282 282 } 283 283 284 284 if ( 'none' != s.addColor ) { 285 var b = e.css( 'background-color' ); 286 if ( b == 'transparent' ) { b = ''; } 285 287 Fat.fade_element(e.attr('id'),null,700,s.addColor); 286 288 setTimeout( function() { 287 var b = e.css( 'background-color' );288 289 var g = e.css( 'background-color', '' ).css( 'background-color' ); 289 290 if ( b != g ) { e.css( 'background-color', b ); } 290 291 }, 705 ); -
wp-includes/script-loader.php
61 61 'delText' => __('Are you sure you want to delete this %thing%?') 62 62 ) ); 63 63 64 $this->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('jquery'), '2007 0823' );64 $this->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('jquery'), '20071023' ); 65 65 $this->localize( 'wp-lists', 'wpListL10n', array( 66 66 'url' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php' 67 67 ) ); … … 118 118 $this->add( 'admin-categories', '/wp-admin/js/categories.js', array('wp-lists'), '20070823' ); 119 119 $this->add( 'admin-custom-fields', '/wp-admin/js/custom-fields.js', array('wp-lists'), '20070823' ); 120 120 $this->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists'), '20070822' ); 121 $this->add( 'admin-posts', '/wp-admin/js/edit-posts.js', array('wp-lists'), '2007 0823' );121 $this->add( 'admin-posts', '/wp-admin/js/edit-posts.js', array('wp-lists'), '20071023' ); 122 122 $this->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20070823' ); 123 123 $this->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' ); 124 124 $this->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' ); -
wp-admin/admin-ajax.php
15 15 case 'add-post' : 16 16 check_ajax_referer( 'add-post' ); 17 17 add_filter( 'post_limits', $limit_filter = create_function( '$a', '$b = split(" ",$a); if ( !isset($b[2]) ) return $a; $start = intval(trim($b[1])) / 20 * 15; if ( !is_int($start) ) return $a; $start += intval(trim($b[2])) - 1; return "LIMIT $start, 1";' ) ); 18 wp_edit_posts_query( '_POST' ); 18 wp_edit_posts_query( $_POST ); 19 if ( !have_posts() ) 20 die('1'); 19 21 $posts_columns = wp_manage_posts_columns(); 20 22 ob_start(); 21 23 include( 'edit-post-rows.php' ); -
wp-admin/includes/post.php
476 476 return $wpdb->query( "UPDATE $wpdb->posts SET post_parent = $new_ID WHERE post_parent = $old_ID" ); 477 477 } 478 478 479 function wp_edit_posts_query( $q = '_GET') {479 function wp_edit_posts_query( $q = false ) { 480 480 global $wpdb; 481 $$q['m'] = (int) $$q['m']; 482 $$q['cat'] = (int) $$q['cat']; 481 if ( false === $q ) 482 $q = $_GET; 483 $q['m'] = (int) $q['m']; 484 $q['cat'] = (int) $q['cat']; 483 485 $post_stati = array( // array( adj, noun ) 484 486 'draft' => array(__('Draft'), _c('Drafts|manage posts header')), 485 487 'future' => array(__('Scheduled'), __('Scheduled posts')), … … 492 494 493 495 $post_status_q = ''; 494 496 $post_status_label = _c('Posts|manage posts header'); 495 if ( isset($ $q['post_status']) && in_array( $$q['post_status'], array_keys($post_stati) ) ) {496 $post_status_label = $post_stati[$ $q['post_status']][1];497 $post_status_q = '&post_status=' . $ $q['post_status'];497 if ( isset($q['post_status']) && in_array( $q['post_status'], array_keys($post_stati) ) ) { 498 $post_status_label = $post_stati[$q['post_status']][1]; 499 $post_status_q = '&post_status=' . $q['post_status']; 498 500 } 499 501 500 if ( 'pending' === $ $q['post_status'] ) {502 if ( 'pending' === $q['post_status'] ) { 501 503 $order = 'ASC'; 502 504 $orderby = 'modified'; 503 } elseif ( 'draft' === $ $q['post_status'] ) {505 } elseif ( 'draft' === $q['post_status'] ) { 504 506 $order = 'DESC'; 505 507 $orderby = 'modified'; 506 508 } else { -
wp-admin/js/edit-posts.js
6 6 else 7 7 delAfter = function() { 8 8 list[0].wpList.add( extra.children(':eq(0)').remove().clone() ); 9 $('#get-extra- button').click();9 $('#get-extra-posts').submit(); 10 10 } 11 11 12 12 var addBefore = function ( settings ) { -
wp-admin/edit.php
108 108 <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> 109 109 </fieldset> 110 110 <input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" /> 111 <?php wp_nonce_field( 'add-post', '_ajax_nonce', false ); ?>112 <input type="button" id="get-extra-button" class="add:the-extra-list:searchform" style="display:none" />113 111 </form> 114 112 115 113 <?php do_action('restrict_manage_posts'); ?> … … 118 116 119 117 <?php include( 'edit-post-rows.php' ); ?> 120 118 119 <form action="" method="post" id="get-extra-posts" class="add:the-extra-list:" style="display:none"> 120 <?php wp_nonce_field( 'add-post', '_ajax_nonce', false ); ?> 121 </form> 122 121 123 <div id="ajax-response"></div> 122 124 123 125 <div class="navigation">