Plugin Directory

Changeset 2745323


Ignore:
Timestamp:
06/20/2022 01:59:11 PM (3 years ago)
Author:
daomapsieucap
Message:

Update to version 2.0.9 from GitHub

Location:
fiber-admin
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • fiber-admin/tags/2.0.9/changelog.txt

    r2742568 r2745323  
    11== Changelog ==
     2
     3= 2.0.9 =
     4*Release Date - 20 June 2022*
     5
     6* Fixed: Missing `stripslashes` when displaying DB Error message.
     7* Fixed: Fix issue custom term order not working when creating new item.
    28
    39= 2.0.8 =
  • fiber-admin/tags/2.0.9/fiberadmin.php

    r2742568 r2745323  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           2.0.8
     6 * Version:           2.0.9
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.0
     
    2626 */
    2727
    28 const FIBERADMIN_VERSION  = '2.0.8';
     28const FIBERADMIN_VERSION  = '2.0.9';
    2929const FIBERADMIN_DEV_MODE = false;
    3030const FIBERADMIN_FILENAME = __FILE__;
  • fiber-admin/tags/2.0.9/includes/cpo.php

    r2714693 r2745323  
    2020       
    2121        add_action('pre_get_posts', array($this, 'fiad_cpo_update_order'));
     22        add_filter('create_term', array($this, 'fiad_cpo_create_term_order'), 10, 3);
    2223        add_filter('get_terms_orderby', array($this, 'fiad_cpo_update_term_order'), 10, 3);
    2324        add_filter('get_terms_args', array($this, 'fiad_get_terms_args'), 10, 2);
     
    221222        return $args;
    222223    }
     224   
     225    public function fiad_cpo_create_term_order($term_id, $tt_id, $taxonomy){
     226        global $wpdb;
     227       
     228        if(in_array($taxonomy, fiad_get_cpo_option('taxonomies'))){
     229            $order_start = 0;
     230           
     231            // Get minimum item
     232            $terms_args = array(
     233                'taxonomy'   => $taxonomy,
     234                'hide_empty' => false,
     235                'number'     => 1,
     236                'orderby'    => 'term_order',
     237                'order'      => 'ASC',
     238                'exclude'    => array($term_id)
     239            );
     240           
     241            $terms = get_terms($terms_args);
     242            if(!empty($terms) && !is_wp_error($terms)){
     243                $order_start = $terms[0]->term_order;
     244            }
     245           
     246            $wpdb->update($wpdb->terms, array('term_order' => $order_start + 1), array('term_id' => $term_id));
     247        }
     248    }
    223249}
    224250
  • fiber-admin/tags/2.0.9/includes/db-error.php

    r2626715 r2745323  
    9494           
    9595            $html .= '<div class="db-error__error-message">';
    96             $html .= $db_error_message;
     96            $html .= stripslashes($db_error_message);
    9797            $html .= '</div>';
    9898           
  • fiber-admin/tags/2.0.9/readme.txt

    r2742568 r2745323  
    55Tested up to: 5.9.3
    66Requires PHP: 7.0
    7 Stable tag: 2.0.8
     7Stable tag: 2.0.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 2.0.8 =
    50 *Release Date - 15 June 2022*
     49= 2.0.9 =
     50*Release Date - 20 June 2022*
    5151
    52 * Fixed: Use `show_ui` to show CPT in CPO.
     52* Fixed: Missing `stripslashes` when displaying DB Error message.
     53* Fixed: Fix issue custom term order not working when creating new item.
  • fiber-admin/trunk/changelog.txt

    r2742568 r2745323  
    11== Changelog ==
     2
     3= 2.0.9 =
     4*Release Date - 20 June 2022*
     5
     6* Fixed: Missing `stripslashes` when displaying DB Error message.
     7* Fixed: Fix issue custom term order not working when creating new item.
    28
    39= 2.0.8 =
  • fiber-admin/trunk/fiberadmin.php

    r2742568 r2745323  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           2.0.8
     6 * Version:           2.0.9
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.0
     
    2626 */
    2727
    28 const FIBERADMIN_VERSION  = '2.0.8';
     28const FIBERADMIN_VERSION  = '2.0.9';
    2929const FIBERADMIN_DEV_MODE = false;
    3030const FIBERADMIN_FILENAME = __FILE__;
  • fiber-admin/trunk/includes/cpo.php

    r2714693 r2745323  
    2020       
    2121        add_action('pre_get_posts', array($this, 'fiad_cpo_update_order'));
     22        add_filter('create_term', array($this, 'fiad_cpo_create_term_order'), 10, 3);
    2223        add_filter('get_terms_orderby', array($this, 'fiad_cpo_update_term_order'), 10, 3);
    2324        add_filter('get_terms_args', array($this, 'fiad_get_terms_args'), 10, 2);
     
    221222        return $args;
    222223    }
     224   
     225    public function fiad_cpo_create_term_order($term_id, $tt_id, $taxonomy){
     226        global $wpdb;
     227       
     228        if(in_array($taxonomy, fiad_get_cpo_option('taxonomies'))){
     229            $order_start = 0;
     230           
     231            // Get minimum item
     232            $terms_args = array(
     233                'taxonomy'   => $taxonomy,
     234                'hide_empty' => false,
     235                'number'     => 1,
     236                'orderby'    => 'term_order',
     237                'order'      => 'ASC',
     238                'exclude'    => array($term_id)
     239            );
     240           
     241            $terms = get_terms($terms_args);
     242            if(!empty($terms) && !is_wp_error($terms)){
     243                $order_start = $terms[0]->term_order;
     244            }
     245           
     246            $wpdb->update($wpdb->terms, array('term_order' => $order_start + 1), array('term_id' => $term_id));
     247        }
     248    }
    223249}
    224250
  • fiber-admin/trunk/includes/db-error.php

    r2626715 r2745323  
    9494           
    9595            $html .= '<div class="db-error__error-message">';
    96             $html .= $db_error_message;
     96            $html .= stripslashes($db_error_message);
    9797            $html .= '</div>';
    9898           
  • fiber-admin/trunk/readme.txt

    r2742568 r2745323  
    55Tested up to: 5.9.3
    66Requires PHP: 7.0
    7 Stable tag: 2.0.8
     7Stable tag: 2.0.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 2.0.8 =
    50 *Release Date - 15 June 2022*
     49= 2.0.9 =
     50*Release Date - 20 June 2022*
    5151
    52 * Fixed: Use `show_ui` to show CPT in CPO.
     52* Fixed: Missing `stripslashes` when displaying DB Error message.
     53* Fixed: Fix issue custom term order not working when creating new item.
Note: See TracChangeset for help on using the changeset viewer.