WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #31822


Ignore:
Timestamp:
03/31/2015 07:38:03 PM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31822

    • Property Focuses administration added
    • Property Component changed from General to Taxonomy
  • Ticket #31822 – Description

    initial v2  
    22I have a _temporary fix_.  I know that it is a horrible idea to edit core files, and I am not recommending that anyone do this. I am merely mentioning it because it may be helpful in getting a more proper fix into a newer release. ('academic_program_type' is the name of the taxonomy.)
    33In /wp-admin/edit-tags.php, before the call to $wp_list_table->display();, I added:
     4{{{
    45if ( 'academic_program_type' == $taxonomy )
    56{
     
    78        wp_cache_flush();       
    89}
     10}}}
    911Please skip the lecture on updating the core files and address the issue that the cache needs to be flushed in order to get children taxonomy items to show in the admin screen.
    1012By the way, I also needed to flush the cache in order to traverse the taxonomy hierarchy in a custom template I created.  If you're looking for related issues.