Changeset 2313295
- Timestamp:
- 05/27/2020 05:23:01 PM (6 years ago)
- Location:
- wp-post-rating/trunk
- Files:
-
- 3 edited
-
classes/admin/RatingsList.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-post-rating.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-post-rating/trunk/classes/admin/RatingsList.php
r2269438 r2313295 171 171 $paged = isset($_REQUEST['paged']) ? max(0, intval($_REQUEST['paged']) - 1) : 0; 172 172 $orderby = (isset($_REQUEST['orderby']) && in_array($_REQUEST['orderby'], array_keys($this->get_sortable_columns()))) ? $_REQUEST['orderby'] : 'id'; 173 $order = (isset($_REQUEST['order']) && in_array($_REQUEST['order'], ['asc', 'desc'])) ? $_REQUEST['order'] : ' asc';173 $order = (isset($_REQUEST['order']) && in_array($_REQUEST['order'], ['asc', 'desc'])) ? $_REQUEST['order'] : 'desc'; 174 174 $offset = $per_page * $paged; 175 175 // [REQUIRED] define $items array -
wp-post-rating/trunk/readme.txt
r2269443 r2313295 4 4 Tags: 5 star, google rating, postrating, rating, ratings, seo rating, rating snippet 5 5 Requires at least: 4.9.8 6 Tested up to: 5.4 6 Tested up to: 5.4.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.0.4. 18 Stable tag: 1.0.4.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 == Changelog == 40 = 1.0.4.2 = 41 * Fix vote table default sort in admin area 42 * Small refactoring 40 43 = 1.0.4.1 = 41 44 * Fix bug with pagination all votes in admin area -
wp-post-rating/trunk/wp-post-rating.php
r2269443 r2313295 5 5 Plugin URI: http://romua1d.ru/wp_post_rating 6 6 Description: Powerful post rating wordpress plugin. 7 Version: 1.0.4. 17 Version: 1.0.4.2 8 8 Author: Romua1d 9 9 Author URI: https://romua1d.ru … … 21 21 22 22 if (!class_exists('InitRating')) { 23 24 23 class InitRating 25 24 { 26 public $position ;25 public $position = 'shortcode'; 27 26 public $wprStarsMainColor; 28 27 public $wprStarsSecondColor; 29 28 30 public $lang_vote = '';31 32 29 public function __construct() 33 30 { 34 // display rating35 36 // add_filter('the_content', [$this, 'add_rating_after_content']);37 31 add_action('wp_enqueue_scripts', [$this, 'include_css_js']); 38 32 … … 40 34 add_action('wp_head', [$this, 'add_meta_nonce']); 41 35 42 // Inter alization36 // Internationalization 43 37 add_action('init', [$this, 'load_plugin_text_domain']); 44 38 … … 65 59 66 60 // Add settings link 67 // add_filter("plugin_action_links_{$this->config->PLUGIN_NAME}", [$this, 'add_settings_link_to_plugin_list']);68 69 61 add_filter("plugin_action_links_" . plugin_basename(__FILE__), [$this, 'add_settings_link_to_plugin_list']); 70 62 … … 106 98 } 107 99 108 // public function add_rating_after_content($content) 109 // { 110 // 111 // if (is_single() && $this->position == 'before') 112 // require_once $this->config->PLUGIN_PATH . 'templates' . DIRECTORY_SEPARATOR . 'main.php'; 113 // 114 // echo do_shortcode($content); 115 // print $content; 116 // 117 // if (is_single() && $this->position == 'after') 118 // require_once $this->config->PLUGIN_PATH . 'templates' . DIRECTORY_SEPARATOR . 'main.php'; 119 // } 120 100 /** 101 * @return bool 102 */ 121 103 public function load_plugin_text_domain() 122 104 { … … 125 107 trailingslashit(WP_LANG_DIR) . $this->config->PLUGIN_NAME . DIRECTORY_SEPARATOR . $this->config->PLUGIN_NAME . '-' . $locale . '.mo')) { 126 108 return $loaded; 127 } else {128 load_plugin_textdomain($this->config->PLUGIN_NAME, false, basename(dirname(__FILE__)) . '/languages/');129 109 } 110 111 return load_plugin_textdomain($this->config->PLUGIN_NAME, false, basename(dirname(__FILE__)) . '/languages/'); 130 112 } 131 113 … … 144 126 } 145 127 146 /**147 * @return string148 */149 128 public function add_meta_nonce() 150 129 { … … 180 159 181 160 $WPR_PLUGIN = new InitRating; 182 183 161 } 184 162
Note: See TracChangeset
for help on using the changeset viewer.