WordPress.org

Plugin Directory

Changeset 995801


Ignore:
Timestamp:
09/24/14 01:02:41 (3 years ago)
Author:
johnleblanc
Message:

set_object_terms fix and added icon

Location:
docs-auto-tags
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • docs-auto-tags/trunk/docs-auto-tags.php

    r621063 r995801  
    44Plugin URI: http://wordpress.org/extend/plugins/docs-auto-tags/ 
    55Description: Assigns tags to posts containing specific text strings, handy for filtering within the loop. See query_posts() in the Codex for including/excluding posts by tag. 
    6 Version: 0.6.1 
     6Version: 0.7 
    77Author: John LeBlanc 
    88Author URI: http://johnleblanc.com 
     
    5555        if ( is_array($tag_options) && count($tag_options) > 0 ) { 
    5656            foreach ( $tag_options as $pattern => $tags ) { 
    57                 if ( strpos($post->post_content, $pattern) ) 
     57                if ( stripos($post->post_content, $pattern) !== false ) 
    5858                    wp_set_post_tags( $post->ID, $tags, TRUE ); // TRUE means append 
    5959            } 
     
    6363        if ( is_array($category_options) && count($category_options) > 0 ) { 
    6464            foreach ( $category_options as $pattern => $categories ) { 
    65                 if ( strpos($post->post_content, $pattern) ) 
    66                     wp_set_object_terms( $post->ID, 'category', $categories, TRUE ); // TRUE means append 
     65                if ( stripos($post->post_content, $pattern) !== false ) 
     66                    wp_set_object_terms( $post->ID, $categories, 'category', TRUE ); // TRUE means append 
    6767            } 
    6868        } 
  • docs-auto-tags/trunk/readme.txt

    r621048 r995801  
    44Tags: tags 
    55Requires at least: 2.8 
    6 Tested up to: 3.4.2 
     6Tested up to: 4.0 
    77Stable tag: 1.0 
    88 
     
    2424 
    2525== Changelog == 
     26 
     27= 0.7 = 
     28Applied fixes courtesy of Boris Kuzmanovic https://wordpress.org/support/topic/a-bug-found 
     29Added plugin icon 
    2630 
    2731= 0.6.1 = 
Note: See TracChangeset for help on using the changeset viewer.