Skip to content

Commit

Permalink
Merge pull request #22 from filmbot/fix/globalize-wp-term-order-insta…
Browse files Browse the repository at this point in the history
…nce-and-make-not-static

Fix: Make Non-Static Method Not Static; Globalize `WP_Term_Order`
  • Loading branch information
JJJ authored Jun 7, 2022
2 parents b874bc0 + c9d4179 commit 41740a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wp-term-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public function get_term_order( $term_id = 0 ) {
*
* @since 0.1.0
*/
public static function term_order_add_form_field() {
public function term_order_add_form_field() {
?>

<div class="form-field form-required">
Expand Down Expand Up @@ -790,6 +790,8 @@ public static function ajax_reordering_terms() {
* @since 0.1.0
*/
function _wp_term_order() {
new WP_Term_Order();
global $wp_term_order;

$wp_term_order = new WP_Term_Order();
}
add_action( 'init', '_wp_term_order', 99 );

0 comments on commit 41740a6

Please sign in to comment.