Changeset 995801
- Timestamp:
- 09/24/2014 01:02:41 AM (12 years ago)
- Location:
- docs-auto-tags
- Files:
-
- 2 added
- 2 edited
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
trunk/docs-auto-tags.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs-auto-tags/trunk/docs-auto-tags.php
r621063 r995801 4 4 Plugin URI: http://wordpress.org/extend/plugins/docs-auto-tags/ 5 5 Description: 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.16 Version: 0.7 7 7 Author: John LeBlanc 8 8 Author URI: http://johnleblanc.com … … 55 55 if ( is_array($tag_options) && count($tag_options) > 0 ) { 56 56 foreach ( $tag_options as $pattern => $tags ) { 57 if ( str pos($post->post_content, $pattern))57 if ( stripos($post->post_content, $pattern) !== false ) 58 58 wp_set_post_tags( $post->ID, $tags, TRUE ); // TRUE means append 59 59 } … … 63 63 if ( is_array($category_options) && count($category_options) > 0 ) { 64 64 foreach ( $category_options as $pattern => $categories ) { 65 if ( str pos($post->post_content, $pattern))66 wp_set_object_terms( $post->ID, 'category', $categories, TRUE ); // TRUE means append65 if ( stripos($post->post_content, $pattern) !== false ) 66 wp_set_object_terms( $post->ID, $categories, 'category', TRUE ); // TRUE means append 67 67 } 68 68 } -
docs-auto-tags/trunk/readme.txt
r621048 r995801 4 4 Tags: tags 5 5 Requires at least: 2.8 6 Tested up to: 3.4.26 Tested up to: 4.0 7 7 Stable tag: 1.0 8 8 … … 24 24 25 25 == Changelog == 26 27 = 0.7 = 28 Applied fixes courtesy of Boris Kuzmanovic https://wordpress.org/support/topic/a-bug-found 29 Added plugin icon 26 30 27 31 = 0.6.1 =
Note: See TracChangeset
for help on using the changeset viewer.