Ticket #12826: ajax-trash.diff
File ajax-trash.diff, 1.6 KB (added by , 15 years ago) |
---|
-
wp-admin/edit.php
140 140 $title = sprintf(__('Edit %s'), $post_type_object->label); 141 141 142 142 wp_enqueue_script('inline-edit-post'); 143 wp_enqueue_script('admin-ajax'); 143 144 144 145 $user_posts = false; 145 146 if ( !current_user_can($post_type_object->edit_others_cap) ) { -
wp-includes/script-loader.php
166 166 167 167 $scripts->add( 'jquery-autocomplete', "/wp-includes/js/jquery/autocomplete$suffix.js", array('jquery'), '1.1' ); 168 168 $scripts->add_data( 'jquery-autocomplete', 'group', 1 ); 169 170 $scripts->add( 'admin-ajax', "/wp-admin/js/admin-ajax.js", array('jquery'), '20091124' ); 169 171 170 172 $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20100108'); 171 173 $scripts->add_data( 'thickbox', 'group', 1 ); -
wp-admin/includes/template.php
1363 1363 echo '</div>'; 1364 1364 1365 1365 get_inline_data($post); 1366 echo '<td class="undo-trash" style="display:none;" colspan="6"><b>'.$title.'</b> moved to the trash. <a href="' . esc_url( wp_nonce_url( "edit.php?post_type=post&doaction=undo&action=untrash&ids=".$post->ID, "bulk-posts" ) ) . '">' . __('Undo') . '</a></td>'; 1367 1366 1368 ?> 1367 1369 </td> 1368 1370 <?php