Plugin Directory

Changeset 1314912


Ignore:
Timestamp:
12/23/2015 08:58:04 AM (10 years ago)
Author:
Frumph
Message:

updated css entity 'visited' to proper spelling and egypturnash's fix for w3 total cache

Location:
comic-easel/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • comic-easel/trunk/comiceasel.php

    r1254820 r1314912  
    44Plugin URI: http://comiceasel.com
    55Description: Comic Easel allows you to incorporate a WebComic using the WordPress Media Library functionality with Navigation into almost all WordPress themes. With just a few modifications of adding injection do_action locations into a theme, you can have the theme of your choice display and manage a webcomic.
    6 Version: 1.9.8
     6Version: 1.9.9
    77Author: Philip M. Hofer (Frumph)
    88Author URI: http://frumph.net/
     
    522522                'plugin_url' => plugin_dir_url(__FILE__),
    523523                'plugin_path' => plugin_dir_path(__FILE__),
    524                 'version' => '1.9.8'
     524                'version' => '1.9.9'
    525525        );
    526526        // Combine em.
  • comic-easel/trunk/css/comiceasel.css

    r1254711 r1314912  
    7070}
    7171
    72 body.scheme-ceasel .comic-nav a:link, body.scheme-ceasel .comic-nav a:visted {
     72body.scheme-ceasel .comic-nav a:link, body.scheme-ceasel .comic-nav a:visited {
    7373    color: #000;
    7474}
  • comic-easel/trunk/functions/navigation.php

    r1017775 r1314912  
    185185function ceo_get_adjacent_chapter($prev = false) {
    186186    global $post;
     187   
    187188    $current_chapter = get_the_terms($post->ID, 'chapters');
    188189    if (is_array($current_chapter)) { $current_chapter = reset($current_chapter); } else { return; }
    189     $current_order = $current_chapter->menu_order;
     190   
     191    // cache the calculation of the desired chapter to work around a weird intermittent bug with w3 total cache's object cache
     192    $current_order = wp_cache_get( 'ceo_current_order_'.$current_chapter->slug );
     193    if ( false === $current_order ) {
     194        $current_order = $current_chapter->menu_order;
     195        wp_cache_set( 'ceo_current_order_'.$current_chapter->slug, $current_order );
     196    }
     197   
    190198    $find_order = (bool)$prev ? $current_order - 1 : $current_order + 1;
     199   
    191200    if (!$find_order) return false;
    192201    $args = array(
     
    204213    return false;
    205214}
     215
    206216
    207217function ceo_get_previous_chapter() {
  • comic-easel/trunk/readme.txt

    r1254820 r1314912  
    44Tags: comiceasel, easel, webcomic, comic, webcomic
    55Requires at least: 4.3
    6 Tested up to: 4.3
    7 Stable tag: 1.9.8
     6Tested up to: 4.4
     7Stable tag: 1.9.9
    88Donate link: http://frumph.net
    99License: GPLv3 or later
     
    129129
    130130== Changelog ==
     131
     132= 1.9.9 =
     133* @Egypturnash - fix ceo_get_adjacent_chapter to work with W3 Total Cache's object cache
     134
    131135= 1.9.8 =
    132136* Put navigation bar back where people expect it to be, will make it an option for 1.9.9
Note: See TracChangeset for help on using the changeset viewer.