Skip to content

Commit

Permalink
v2.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aurovrata committed Feb 23, 2023
1 parent 1be03c1 commit 0811928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion admin/class-reorder-post-within-categories-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,12 @@ private function _get_ranked_posts($post_type, $term_id, $start, $offset){
'ignore_sticky_posts'=>false,
'posts_per_page'=>-1
));
$results = array_fill(0, count($ranking), '');
/** @since 2.14.1 WPML */
$results = [];//array_fill(0, count($ranking), '');
foreach($posts as $post) {
$img = self::get_thumbnail_url($post);
$rank = array_search($post->ID, $ranking);
if($rank === false) continue;
$results[$rank]=array(
'id'=>$post->ID,
'link'=>admin_url('post.php?post='.$post->ID.'&action=edit'),
Expand Down
4 changes: 2 additions & 2 deletions reorder-post-within-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: ReOrder Posts within Categories
* Plugin URI: https://github.com/aurovrata/ReOrder-posts-within-categories
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
* Version: 2.14.0
* Version: 2.14.1
* Author: Aurorata V.
* Author URI: https://profiles.wordpress.org/aurovrata/
* License: GPL-2.0+
Expand All @@ -33,7 +33,7 @@
/**
* Current plugin version.
*/
define( 'REORDER_POST_WITHIN_CATEGORIES_VERSION', '2.14.0' );
define( 'REORDER_POST_WITHIN_CATEGORIES_VERSION', '2.14.1' );
//options for plugin used in both public and admin classes.
define('RPWC_OPTIONS', 'deefuse_ReOrderOrderedCategoriesOptions');
define('RPWC_OPTIONS_2', '_rpwc2_sort_options');
Expand Down

0 comments on commit 0811928

Please sign in to comment.