Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Feb 1, 2022
1 parent f02d6ca commit 11a46e3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
8 changes: 6 additions & 2 deletions App/Controllers/Admin/Posts/ReOrderPosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,15 @@ public function registerHooks()
*/
public function registerScripts()
{
$pluginData = get_plugin_data(RDPOSTORDER_FILE);
$pluginVersion = (isset($pluginData['Version']) ? $pluginData['Version'] : false);
unset($pluginData);

// to name font awesome handle as `plugin-name-prefix-font-awesome4` is to prevent conflict with other plugins that maybe use older version but same handle that cause some newer icons in this plugin disappears.
wp_enqueue_style('rd-postorder-font-awesome4', plugin_dir_url(RDPOSTORDER_FILE) . 'assets/css/font-awesome.min.css', [], '4.7.0');
wp_enqueue_style('rd-postorder-ReOrderPosts-css', plugin_dir_url(RDPOSTORDER_FILE) . 'assets/css/ReOrderPosts.css');
wp_enqueue_style('rd-postorder-ReOrderPosts-css', plugin_dir_url(RDPOSTORDER_FILE) . 'assets/css/ReOrderPosts.css', [], $pluginVersion);

wp_enqueue_script('rd-postorder-ReOrderPosts-js', plugin_dir_url(RDPOSTORDER_FILE) . 'assets/js/ReOrderPosts.js', ['jquery', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-touch-punch', 'jquery-query'], false, true);
wp_enqueue_script('rd-postorder-ReOrderPosts-js', plugin_dir_url(RDPOSTORDER_FILE) . 'assets/js/ReOrderPosts.js', ['jquery', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-touch-punch', 'jquery-query'], $pluginVersion, true);
wp_localize_script(
'rd-postorder-ReOrderPosts-js',
'RdPostOrderObj',
Expand Down
4 changes: 2 additions & 2 deletions rd-postorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Plugin Name: Rundiz PostOrder
* Plugin URI: https://rundiz.com/?p=319
* Description: Re-order posts to what you want.
* Version: 1.0.2
* Requires at least: 4.6.0
* Version: 1.0.3
* Requires at least: 4.7.0
* Requires PHP: 5.5
* Author: Vee Winch
* Author URI: http://rundiz.com
Expand Down
23 changes: 21 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: okvee
Tags: posts, order, sort, re-arrange, re arrange, rearrange, re_arrange, sortable, sort posts, order posts
Tested up to: 5.9
Stable tag: 1.0.2
Stable tag: 1.0.3
License: MIT
License URI: https://opensource.org/licenses/MIT
Requires at least: 4.6.0
Requires at least: 4.7.0
Requires PHP: 5.5

Re-order posts to what you want.
Expand Down Expand Up @@ -70,6 +70,25 @@ Please note that to hook into this filter in the theme some times it might not w
3. Re-ordering action.

== Changelog ==
= 1.0.3 =
2022-02-01

* Removed no need check requirement, already checked on WP core.
* Remove donation link.
* Fix activate/uninstall process.
* Add network settings (multisite).
* Move PHP files into sub folders. Each sub folder represent admin menu.
* Update JS of re-order page to class that supported in newer web browser.
* Add view link (to front page) in re-order posts page.
* Move ajax actions to its controller.
* Move admin help tab contents to views file.
* Use `wp_send_json` instead of `echo` and `wp_die` instead of `exit`.
* Fix call to hook `wp_insert_post`.
* Update hook new post class to always update scheduled posts number.
* Make Polylang supported (on selected language and list posts).
* Fix alter post on front pages main query only.
* Update translation.

= 1.0.2 =
2021-12-14

Expand Down

0 comments on commit 11a46e3

Please sign in to comment.