Plugin Directory

Changeset 466444


Ignore:
Timestamp:
11/23/2011 12:40:40 PM (14 years ago)
Author:
johnleblanc
Message:

fixed 'Invalid argument supplied for foreach()' Warning

Location:
docs-auto-tags/trunk
Files:
2 edited

Legend:

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

    r372739 r466444  
    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.4
     6Version: 0.5
    77Author: John LeBlanc
    88Author URI: http://johnleblanc.com
     
    9696
    9797            <?php $i=0; ?>
    98             <?php if ( count($options) > 0 ): ?>
     98            <?php if ( is_array($options) && count($options) > 0 ): ?>
    9999            <?php foreach ( $options as $pattern => $tags ) : ?>
    100100                <div id="rule-<?php echo $i ?>">
  • docs-auto-tags/trunk/readme.txt

    r373171 r466444  
    2020
    2121== Changelog ==
     22
     23= 0.5 =
     24Fixed "Warning: Invalid argument supplied for foreach()" error http://wordpress.org/support/topic/plugin-docs-auto-tags-error-message-on-settings-page-after-install?replies=1#post-2456270
    2225
    2326= 0.4 =
Note: See TracChangeset for help on using the changeset viewer.