_make_cat_compat


_make_cat_compat ( $category )

Access:
  • private
Parameters:
  • (array|object|WP_Term) category Category row object or array.
Defined at:
Change Log:
  • 4: .

Description

Updates category structure to old pre-2.3 from new taxonomy structure.This function was added for the taxonomy support to update the new category structure with the old category one. This will maintain compatibility with plugins and themes which depend on the old key or property names. The parameter should only be passed a variable and not create the array or object inline to the parameter. The reason for this is that parameter is passed by reference and PHP will fail unless it has the variable. There is no return value, because everything is updated on the variable you pass to it. This is one of the features with using pass by reference in PHP.

Related Functions

wp_ajax_date_format, wp_ajax_save_attachment_compat, maybe_add_column, get_home_path, get_category_template

Top Google Results

User discussions

wpseek mobile