Skip to content

Commit

Permalink
Avoid deprecated parameter format for get_terms().
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Sep 14, 2023
1 parent 2caf5c9 commit 57ddfab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Core/Schema/Folders.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ public function is_feed_term( $id ) {
public function get_top_feed_folders() {
$terms = array( $this->tag_taxonomy );
$cats = get_terms(
$terms,
array(
[
'taxonomy' => $terms,
'parent' => 0,
'hide_empty' => 0,
'hierarchical' => 1,
)
]
);
return $cats;
}
Expand Down
6 changes: 3 additions & 3 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1354,10 +1354,10 @@ function pf_process_delete_queue() {
delete_option( 'pf_delete_queue' );

$terms = get_terms(
pressforward( 'schema.feeds' )->tag_taxonomy,
array(
[
'taxonomy' => pressforward( 'schema.feeds' )->tag_taxonomy,
'hide_empty' => false,
)
]
);

foreach ( $terms as $term ) {
Expand Down

0 comments on commit 57ddfab

Please sign in to comment.