Changeset 386 for trunk/WordPress/plugin/transposh/wp/transposh_ajax.php
- Timestamp:
- 03/04/2010 02:12:58 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/wp/transposh_ajax.php
r371 r386 81 81 } 82 82 } 83 // Start full translation 84 elseif (isset($_GET['translate_all'])) { 85 // get all ids in need of translation 86 $page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_type='page' OR post_type='post' ORDER BY ID DESC"); 87 // only high capabilities users can... 88 if (!current_user_can('edit_post',$page_ids[0])) return; 89 echo json_encode($page_ids); 90 } 91 // Start backup on demand 92 /*elseif (isset($_GET['backup'])) { 93 $my_transposh_backup = new transposh_backup($my_transposh_plugin); 94 $my_transposh_backup->do_backup(); 95 }*/ 96 83 97 ?>
Note: See TracChangeset
for help on using the changeset viewer.
