Changeset 1749439
- Timestamp:
- 10/19/2017 07:05:56 PM (8 years ago)
- Location:
- wp-ranking-pro/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-ranking-pro.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-ranking-pro/trunk/readme.txt
r1686681 r1749439 4 4 Tags: ranking, popular, Post, posts, popularity, widget, AJAX, shortcode, cache, top 5 5 Requires at least: 4.5 6 Tested up to: 4.8. 07 Stable tag: 1.0. 16 Tested up to: 4.8.2 7 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 == Changelog == 77 77 78 **1.0.2** 79 * Bug fix. 80 78 81 **1.0.1** 79 82 * Bug fix. -
wp-ranking-pro/trunk/wp-ranking-pro.php
r1686681 r1749439 24 24 class WP_Ranking_PRO 25 25 { 26 const _DB_VERSION = '0.1 2';26 const _DB_VERSION = '0.13'; 27 27 const TEXT_DOMAIN = 'wp-ranking-pro'; 28 28 const UA_MOBILE = "iPhone\niPod\nAndroid\ndream\nCUPCAKE\nWindows Phone\nwebOS\nBB10\nBlackBerry8707\nBlackBerry9000\nBlackBerry9300\nBlackBerry9500\nBlackBerry9530\nBlackBerry9520\nBlackBerry9550\nBlackBerry9700\nBlackBerry 93\nBlackBerry 97\nBlackBerry 99\nBlackBerry 98\nDoCoMo\nSoftBank\nJ-PHONE\nVodafone\nKDDI\nUP.Browser\nWILLCOM\nemobile\nDDIPOCKET\nWindows CE\nBlackBerry\nSymbian\nPalmOS\nHuawei\nIAC\nNokia"; … … 102 102 103 103 # $installed_db_version < 0.01 104 if (strcmp($installed_db_version, '0.01') == -1) {104 if (strcmp($installed_db_version, '0.01') < 0) { 105 105 $this->_insert_default_rankings(); 106 106 … … 110 110 111 111 # $installed_db_version < 0.12 112 if (strcmp($installed_db_version, '0.12') == -1) {112 if (strcmp($installed_db_version, '0.12') < 0) { 113 113 $this->_update_default_ranking_title(); 114 } 115 116 # $installed_db_version < 0.13 117 if (strcmp($installed_db_version, '0.13') < 0) { 118 $this->_check_default_rankings(); 114 119 } 115 120 … … 232 237 } 233 238 239 private function _check_default_rankings() { 240 global $wpdb; 241 242 $ranking_count = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}wpr_ranking WHERE id BETWEEN 1 AND 6"); 243 if (!is_null($ranking_count) && $ranking_count == 0) { 244 $this->_insert_default_rankings(); 245 } 246 } 247 234 248 private function _update_default_ranking_title() { 235 249 global $wpdb;
Note: See TracChangeset
for help on using the changeset viewer.