Changeset 1688489
- Timestamp:
- 06/30/2017 07:10:56 PM (9 years ago)
- Location:
- note-press/trunk
- Files:
-
- 4 edited
-
Note_Press.php (modified) (1 diff)
-
README.txt (modified) (2 diffs)
-
admin/Note_Press-admin-menu.php (modified) (2 diffs)
-
includes/class-Note_Press-activator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
note-press/trunk/Note_Press.php
r1688454 r1688489 17 17 * Plugin URI: http://www.datainterlock.com 18 18 * Description: Add, edit and delete multiple notes and display them with icons on the Admin page. 19 * Version: 0.1. 319 * Version: 0.1.4 20 20 * Author: datainterlock 21 21 * Author URI: http://www.datainterlock.com -
note-press/trunk/README.txt
r1688466 r1688489 76 76 77 77 == Changelog == 78 = 0.1.4 = 79 Fixed update breaking as a result of the plugin not deactivating during upgrade. 80 81 == Changelog == 78 82 = 0.1.3 = 79 83 *Boilerplate updated. … … 90 94 *Fixed column sorting which was broken in 0.1.2 as a result of preparing queries. 91 95 92 93 96 = 0.1.2 = 94 97 *Security update to reduce risk of SQL injection. -
note-press/trunk/admin/Note_Press-admin-menu.php
r1688470 r1688489 704 704 } 705 705 } 706 707 if (get_option("Note_Press_db_version", '2.0') == "1.0")706 707 function CheckDB() 708 708 { 709 Note_PressshowMessage(__('Please deactivate and re-activate Note Press to complete the upgrade.', 'Note_Press'), true); 710 exit; 711 } 709 global $wpdb; 710 $tablename = $wpdb->prefix . "Note_Press"; 711 $SQL = "SHOW COLUMNS FROM $tablename LIKE 'Priority'"; 712 $wpdb->get_results($SQL); 713 if ($wpdb->num_rows == 0) 714 { 715 Note_PressshowMessage(__('Please deactivate and re-activate Note Press to complete the upgrade.', 'Note_Press'), true); 716 return true; 717 } 718 else 719 { 720 return false; 721 } 722 } 723 724 if (CheckDB()) 725 { 726 die(); 727 } 728 else 729 { 712 730 if (isset($_POST['Update'])) 713 731 { … … 782 800 Note_Pressget_notes(); 783 801 } 802 } 784 803 ?> -
note-press/trunk/includes/class-Note_Press-activator.php
r1688457 r1688489 71 71 "; 72 72 $wpdb->query($sql); 73 if (get_option("Note_Press_db_version", '2.0') == "1.0") 73 $tablename = $wpdb->prefix . "Note_Press"; 74 $SQL = "SHOW COLUMNS FROM $tablename LIKE 'Priority'"; 75 $wpdb->get_results($SQL); 76 if ($wpdb->num_rows == 0) 74 77 { 75 78 $table_name = $wpdb->prefix . "Note_Press";
Note: See TracChangeset
for help on using the changeset viewer.