Changes from branches/2.8/wp-admin/admin-ajax.php at r11659 to trunk/wp-admin/admin-ajax.php at r11512
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r11659 r11512 603 603 die('-1'); 604 604 $search = isset($_POST['s']) ? $_POST['s'] : false; 605 $status = isset($_POST['comment_status']) ? $_POST['comment_status'] : 'all'; 606 $per_page = isset($_POST['per_page']) ? (int) $_POST['per_page'] + 8 : 28; 607 $start = isset($_POST['page']) ? ( intval($_POST['page']) * $per_page ) -1 : $per_page - 1; 608 if ( 1 > $start ) 609 $start = 27; 610 605 $start = isset($_POST['page']) ? intval($_POST['page']) * 25 - 1: 24; 606 $status = isset($_POST['comment_status']) ? $_POST['comment_status'] : false; 611 607 $mode = isset($_POST['mode']) ? $_POST['mode'] : 'detail'; 612 608 $p = isset($_POST['p']) ? $_POST['p'] : 0; … … 819 815 if ( !current_user_can( 'edit_post', $meta->post_id ) ) 820 816 die('-1'); 821 if ( $meta->meta_value != stripslashes($value) ) { 822 if ( !$u = update_meta( $mid, $key, $value ) ) 823 die('0'); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems). 824 } 817 if ( !$u = update_meta( $mid, $key, $value ) ) 818 die('0'); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems). 825 819 826 820 $key = stripslashes($key);
Note: See TracChangeset
for help on using the changeset viewer.