Changeset 1718695
- Timestamp:
- 08/24/2017 09:38:24 AM (9 years ago)
- Location:
- snippy/trunk
- Files:
-
- 4 edited
-
includes/db.php (modified) (2 diffs)
-
includes/list.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
snippy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
snippy/trunk/includes/db.php
r1700307 r1718695 27 27 array_unshift($params, $table); 28 28 29 $wpdb->query(vsprintf($sql, $params));29 return $wpdb->query( vsprintf($sql, $params) ); 30 30 } 31 31 … … 115 115 116 116 static public function get_total_entries($table) { 117 return self::run_simple_query('SELECT COUNT(id) FROM %s', $table); 117 global $wpdb; 118 $table_name = self::get_table_name($table); 119 return count($wpdb->get_results( "SELECT id FROM $table_name", ARRAY_A )); 118 120 } 119 121 -
snippy/trunk/includes/list.php
r1700307 r1718695 116 116 function prepare_items() 117 117 { 118 $per_page = 5; // constant, how much records will be shown per page118 $per_page = 20; 119 119 $columns = $this->get_columns(); 120 120 $hidden = array(); … … 138 138 $this->items = Data::get_entries($this->table, $orderby, $order, $per_page, $paged); 139 139 140 $this->set_pagination_args( array(140 $this->set_pagination_args( array( 141 141 'total_items' => $total_items, // total items defined above 142 142 'per_page' => $per_page, // per page constant defined at top of method -
snippy/trunk/readme.txt
r1711334 r1718695 5 5 Requires at least: 4.5 6 6 Tested up to: 4.8.1 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 103 103 == Changelog == 104 104 105 = 1.1.1 = 106 107 * Fix problem where shortcode and bits tables would not show paging control 108 109 105 110 = 1.1.0 = 106 111 … … 116 121 117 122 == Upgrade Notice == 123 124 Fix problem where shortcode and bits tables would not show paging control -
snippy/trunk/snippy.php
r1711334 r1718695 4 4 * Plugin URI: https://pqina.nl/snippy 5 5 * Description: Snippy, create your own super flexible shortcodes 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: PQINA 8 8 * Author URI: https://pqina.nl … … 63 63 64 64 // Snippy version 65 public static $version = '1.1. 0';65 public static $version = '1.1.1'; 66 66 67 67 private static $_instance = null;
Note: See TracChangeset
for help on using the changeset viewer.