Changeset 2787468
- Timestamp:
- 09/20/2022 08:31:07 AM (3 years ago)
- Location:
- fiber-admin
- Files:
-
- 8 edited
- 1 copied
-
tags/2.0.12 (copied) (copied from fiber-admin/trunk)
-
tags/2.0.12/changelog.txt (modified) (1 diff)
-
tags/2.0.12/fiberadmin.php (modified) (1 diff)
-
tags/2.0.12/includes/cpo.php (modified) (3 diffs)
-
tags/2.0.12/readme.txt (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/fiberadmin.php (modified) (1 diff)
-
trunk/includes/cpo.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fiber-admin/tags/2.0.12/changelog.txt
r2774044 r2787468 1 1 == Changelog == 2 3 = 2.0.12 = 4 *Release Date - 20 September 2022* 5 6 * Fixed: Fix issue CPO creating new post. 2 7 3 8 = 2.0.11 = -
fiber-admin/tags/2.0.12/fiberadmin.php
r2774044 r2787468 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 2.0.1 16 * Version: 2.0.12 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.0 -
fiber-admin/tags/2.0.12/includes/cpo.php
r2760932 r2787468 13 13 add_action('admin_enqueue_scripts', array($this, 'fiad_cpo_scripts')); 14 14 15 add_action('wp_insert_post', array($this, 'fiad_cpo_insert'), 10, 3); 15 16 add_action("wp_ajax_fiad_cpo_update", array($this, 'fiad_cpo_update')); 16 17 add_action("wp_ajax_nopriv_fiad_cpo_update", array($this, 'fiad_cpo_update')); … … 105 106 } 106 107 108 public function fiad_cpo_insert($post_id, $post, $update){ 109 if(!$update){ 110 global $wpdb; 111 $order_start = 0; 112 113 $wpdb->update($wpdb->posts, array('menu_order' => $order_start), array('ID' => intval($post_id))); 114 115 $update_posts_args = array( 116 'post_type' => $post->post_type, 117 'posts_per_page' => - 1, 118 'post_status' => 'publish', 119 'orderby' => 'menu_order', 120 'order' => 'ASC', 121 'post__not_in' => array($post_id), 122 'suppress_filters' => false, 123 'fields' => 'ids' 124 ); 125 $update_posts_query = new WP_Query($update_posts_args); 126 if($update_posts_query->have_posts()){ 127 foreach($update_posts_query->posts as $index => $id){ 128 $wpdb->update($wpdb->posts, array('menu_order' => intval($index + 1)), array('ID' => intval($id))); 129 $order_start ++; 130 } 131 } 132 } 133 } 134 107 135 public function fiad_cpo_update_order($query){ 108 136 if($query->is_main_query()){ … … 239 267 'number' => 1, 240 268 'orderby' => 'term_order', 241 'order' => ' ASC',269 'order' => 'DESC', 242 270 'exclude' => array($term_id) 243 271 ); -
fiber-admin/tags/2.0.12/readme.txt
r2774044 r2787468 5 5 Tested up to: 6.0.1 6 6 Requires PHP: 7.0 7 Stable tag: 2.0.1 17 Stable tag: 2.0.12 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 2.0.1 1=50 *Release Date - 2 3 August2022*49 = 2.0.12 = 50 *Release Date - 20 September 2022* 51 51 52 * Changed: Remove autocomplete caption image.52 * Fixed: Fix issue CPO creating new post. -
fiber-admin/trunk/changelog.txt
r2774044 r2787468 1 1 == Changelog == 2 3 = 2.0.12 = 4 *Release Date - 20 September 2022* 5 6 * Fixed: Fix issue CPO creating new post. 2 7 3 8 = 2.0.11 = -
fiber-admin/trunk/fiberadmin.php
r2774044 r2787468 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 2.0.1 16 * Version: 2.0.12 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.0 -
fiber-admin/trunk/includes/cpo.php
r2760932 r2787468 13 13 add_action('admin_enqueue_scripts', array($this, 'fiad_cpo_scripts')); 14 14 15 add_action('wp_insert_post', array($this, 'fiad_cpo_insert'), 10, 3); 15 16 add_action("wp_ajax_fiad_cpo_update", array($this, 'fiad_cpo_update')); 16 17 add_action("wp_ajax_nopriv_fiad_cpo_update", array($this, 'fiad_cpo_update')); … … 105 106 } 106 107 108 public function fiad_cpo_insert($post_id, $post, $update){ 109 if(!$update){ 110 global $wpdb; 111 $order_start = 0; 112 113 $wpdb->update($wpdb->posts, array('menu_order' => $order_start), array('ID' => intval($post_id))); 114 115 $update_posts_args = array( 116 'post_type' => $post->post_type, 117 'posts_per_page' => - 1, 118 'post_status' => 'publish', 119 'orderby' => 'menu_order', 120 'order' => 'ASC', 121 'post__not_in' => array($post_id), 122 'suppress_filters' => false, 123 'fields' => 'ids' 124 ); 125 $update_posts_query = new WP_Query($update_posts_args); 126 if($update_posts_query->have_posts()){ 127 foreach($update_posts_query->posts as $index => $id){ 128 $wpdb->update($wpdb->posts, array('menu_order' => intval($index + 1)), array('ID' => intval($id))); 129 $order_start ++; 130 } 131 } 132 } 133 } 134 107 135 public function fiad_cpo_update_order($query){ 108 136 if($query->is_main_query()){ … … 239 267 'number' => 1, 240 268 'orderby' => 'term_order', 241 'order' => ' ASC',269 'order' => 'DESC', 242 270 'exclude' => array($term_id) 243 271 ); -
fiber-admin/trunk/readme.txt
r2774044 r2787468 5 5 Tested up to: 6.0.1 6 6 Requires PHP: 7.0 7 Stable tag: 2.0.1 17 Stable tag: 2.0.12 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 2.0.1 1=50 *Release Date - 2 3 August2022*49 = 2.0.12 = 50 *Release Date - 20 September 2022* 51 51 52 * Changed: Remove autocomplete caption image.52 * Fixed: Fix issue CPO creating new post.
Note: See TracChangeset
for help on using the changeset viewer.