mirror of
https://github.com/Frumph/comic-easel.git
synced 2026-07-25 12:25:39 -04:00
[GH-ISSUE #18] Conflict with W3 Total Cache in ceo_get_adjacent_chapter() #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @egypturnash on GitHub (Dec 23, 2015).
Original GitHub issue: https://github.com/Frumph/comic-easel/issues/18
When calling ceo_get_adjacent_chapter() a second time in my chapter-oriented custom theme, current_chapter->menu_order is empty if W3 Total Cache's object caching is turned on.
This version of ceo_get_adjacent_chapter() fixes this by explicitly caching current_chapter->menu_order, and doesn't seem to have any side effects.
@Frumph commented on GitHub (Dec 23, 2015):
add/replacing with current, https://github.com/Frumph/comic-easel/commit/c49a9ece1f813b7b33b4f7f5051440347e29a848
added egypturnash's github account as collaborator so they can make commits themself