Categories view mode
Fixes display type for categories overwriting the Presentation settings when selecting Default as option
Is there an issue on Github for this PR?
#1505 perhaps?
Even after using the code change above SOME of the categories might have the display_type set in the meta table. To make sure the code change above will work correctly for existing categories that already have that in the DB i ran a sql query to remove all meta for existing categories that used the DEFAUL view mode:
DELETE FROM `wp_wpsc_meta` WHERE `meta_key` = 'display_type' AND `meta_value` = 'default'
Sounds like we need an upgrade routine here before we can merge.
Just remembered this PR existed :) A couple things, if we want to land #1505 in 4.0
- rather than using
esc_sql(), let's check against a filtered array, containing grid/list. - as mentioned, we'll need an upgrade routine.
Punting this to 4.1, pending the required changes.