Changeset 6287
- Timestamp:
- 10/23/2007 11:02:24 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
wp-admin/admin-ajax.php (modified) (1 diff)
-
wp-admin/edit.php (modified) (2 diffs)
-
wp-admin/includes/post.php (modified) (2 diffs)
-
wp-admin/js/edit-posts.js (modified) (1 diff)
-
wp-includes/js/wp-lists.js (modified) (1 diff)
-
wp-includes/script-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r6213 r6287 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(); -
trunk/wp-admin/edit.php
r6277 r6287 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 … … 118 116 119 117 <?php include( 'edit-post-rows.php' ); ?> 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> 120 122 121 123 <div id="ajax-response"></div> -
trunk/wp-admin/includes/post.php
r6229 r6287 477 477 } 478 478 479 function wp_edit_posts_query( $q = '_GET' ) { 480 global $wpdb; 481 $$q['m'] = (int) $$q['m']; 482 $$q['cat'] = (int) $$q['cat']; 479 function wp_edit_posts_query( $q = false ) { 480 global $wpdb; 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')), … … 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'];498 } 499 500 if ( 'pending' === $ $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']; 500 } 501 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'; -
trunk/wp-admin/js/edit-posts.js
r6215 r6287 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 -
trunk/wp-includes/js/wp-lists.js
r6215 r6287 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 ); } -
trunk/wp-includes/script-loader.php
r6218 r6287 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' … … 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' );
Note: See TracChangeset
for help on using the changeset viewer.