Changeset 2419599
- Timestamp:
- 11/16/2020 07:41:55 PM (5 years ago)
- Location:
- template-dictionary/trunk
- Files:
-
- 3 edited
-
admin/admin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
template-dictionary.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
template-dictionary/trunk/admin/admin.php
r1830393 r2419599 830 830 if( $id ){ 831 831 $sql = "SELECT COUNT(*) FROM $table_main WHERE code = %s AND id != %d"; 832 $result = $wpdb->get_var( $wpdb->prepare( $sql, $code, $id ) ); 832 833 } 833 834 else { 834 835 $sql = "SELECT COUNT(*) FROM $table_main WHERE code = %s"; 835 }836 837 $result = $wpdb->get_var( $wpdb->prepare( $sql, $code, $id ) ); 836 $result = $wpdb->get_var( $wpdb->prepare( $sql, $code ) ); 837 } 838 838 839 839 840 return (int)$result; … … 1060 1061 ) ts 1061 1062 ON t.id = ts.id 1062 WHERE lang in ($langs_sql) 1063 WHERE lang in ($langs_sql) OR lang IS NULL 1063 1064 ORDER BY code ASC"; 1064 1065 -
template-dictionary/trunk/readme.txt
r2132610 r2419599 3 3 Tags: template, dictionary, variables, settings, options 4 4 Requires at least: 4.5 5 Tested up to: 5. 2.26 Stable tag: 1.6 5 Tested up to: 5.5.3 6 Stable tag: 1.6.1 7 7 License: GPL2 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 70 70 71 71 == Changelog == 72 = 1.6.1 = 73 * Fix: When exporting both settings and values, export empty settings too. 74 * Fix: Correct number of placeholders for wpdb::prepare. 75 72 76 = 1.6 = 73 77 * Added method to get whole dictionary array. -
template-dictionary/trunk/template-dictionary.php
r2132610 r2419599 3 3 * Plugin Name: Template Dictionary 4 4 * Description: A plugin for developers which provides template variables dictionary editable in backend. 5 * Version: 1.6 5 * Version: 1.6.1 6 6 * Author: Radovan Kneblík 7 7 * License: GPL2 … … 24 24 * @var string 25 25 */ 26 private $version = '1.6 ';26 private $version = '1.6.1'; 27 27 28 28 /**
Note: See TracChangeset
for help on using the changeset viewer.