Plugin Directory

Changeset 621048


Ignore:
Timestamp:
11/04/2012 10:05:42 PM (13 years ago)
Author:
johnleblanc
Message:

fixed error mesage

Location:
docs-auto-tags
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • docs-auto-tags

    • Property svn:ignore set to
      assets/screenshot.psd
  • docs-auto-tags/trunk/docs-auto-tags.php

    r608028 r621048  
    5353        // append tags
    5454        $tag_options = get_option( 'docs_autotags' );
    55         if ( count($tag_options) > 0 ) {
     55        if ( is_array($tag_options) && count($tag_options) > 0 ) {
    5656            foreach ( $tag_options as $pattern => $tags ) {
    5757                if ( strpos($post->post_content, $pattern) )
     
    6161        // append categories
    6262        $category_options = get_option( 'docs_autocategories' );
    63         if ( count($category_options) > 0 ) {
     63        if ( is_array($category_options) && count($category_options) > 0 ) {
    6464            foreach ( $category_options as $pattern => $categories ) {
    6565                if ( strpos($post->post_content, $pattern) )
  • docs-auto-tags/trunk/readme.txt

    r608028 r621048  
    1111== Description ==
    1212
    13 Assigns tags to posts containing specific text strings, handy for filtering within the loop. A gift to [@docrock](http://twitter.com/docrock/status/58054643929985024) from [@johnleblanc](http://twitter.com/johnleblanc/status/58303307713753088) to help keep [Instagr.am](http://instagr.am/) image posts out of the [mrdocrock.com](http://www.mrdocrock.com) homepage loop.  Born April 13, 2011 in [Kaneohe, HI](http://maps.google.com/maps?ll=21.408966,-157.831993&spn=0.091894,0.162907&t=h&z=13&lci=com.panoramio.all,com.youtube.all,com.google.webcams,org.wikipedia.en).
     13Assigns tags to posts containing specific text strings, handy for filtering within the loop. A gift to  [@docrock](http://twitter.com/docrock/status/58054643929985024)  from  [@johnleblanc](http://twitter.com/johnleblanc/status/58303307713753088)  to help keep  [Instagr.am](http://instagr.am/)  image posts out of the  [mrdocrock.com](http://www.mrdocrock.com)  homepage loop.  Born April 13, 2011 in [Kaneohe, HI](http://maps.google.com/maps?ll=21.408966,-157.831993&spn=0.091894,0.162907&t=h&z=13&lci=com.panoramio.all,com.youtube.all,com.google.webcams,org.wikipedia.en).
    1414
    1515== Installation ==
    1616
    17 1. Install from the Plugins page within the Dashboard. For those with too much free time, download from the [plugin page](http://wordpress.org/extend/plugins/docs-auto-tags/) or [subversion repository](http://plugins.svn.wordpress.org/docs-auto-tags/) and upload `docs-auto-tags` to your plugins directory (usually `/wp-content/plugins/` unless you've defined a custom value by overriding the WP_PLUGINS_DIR constant).
     171. Install from the Plugins page within the Dashboard. For those with too much free time, download from the  [plugin page](http://wordpress.org/extend/plugins/docs-auto-tags/)  or  [subversion repository](http://plugins.svn.wordpress.org/docs-auto-tags/) and upload `docs-auto-tags` to your plugins directory (usually `/wp-content/plugins/` unless you've defined a custom value by overriding the WP_PLUGINS_DIR constant).
    18181. Activate the plugin through the 'Plugins' menu in WordPress
    19191. Configure your settings within the 'Tools' area in the Dashboard
     
    2424
    2525== Changelog ==
     26
     27= 0.6.1 =
     28Fixed another "Warning: Invalid argument supplied for foreach()" for real this time
    2629
    2730= 0.6 =
Note: See TracChangeset for help on using the changeset viewer.