Plugin Directory

Changeset 1003422


Ignore:
Timestamp:
10/07/2014 06:08:26 PM (11 years ago)
Author:
paperleaf
Message:

account for prebuilt filters

Location:
timespan/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • timespan/trunk/readme.txt

    r1002751 r1003422  
    7272== Changelog ==
    7373
     74= 1.0.2 = Account for prebuilt themes using custom content filters
    7475= 1.0 = Initial Plugin Launch (September 30, 2014)
    7576* Plugin First Launches
  • timespan/trunk/timespan.php

    r1002666 r1003422  
    44Plugin URI: http://paper-leaf.com
    55Description: A simple, easy to use plugin which can be used to display the average time it will take to read a post.
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: Paper Leaf Design
    88Author URI: http://paper-leaf.com
     
    7878
    7979function auto_TTR( $content ) {
    80     if (get_option('autots') == 1) {   
    81         if ( is_single() ) {
     80    if ( is_single() && is_main_query() ) {
     81        if (get_option('autots') == 1) {   
    8282            $word_count = str_word_count( strip_tags( $content ) );
    8383            $words_per_minute = 250;
Note: See TracChangeset for help on using the changeset viewer.