neroxing
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [WP-Cirrus] PHP Warning: wp-cirrus.php:368 – Undefined index: argsI don’t know why the author wright: $options[‘args’] = $options[‘args’] . “…. this make no sens? should it be: $args = $options[‘args’]….
there are some if above, code shoudle be:$options['args'] = (isset($options['args']) ? $options['args'] : 'unit=pt'); if($options['mode'] == 'both'){ echo wp_tag_cloud($options['args']. "&taxonomy=post_tag&number=" . $options['number'] . "&orderby=" . $options['orderBy'] . "&order=" . $options['sortOrder'] . "&smallest=" . $options['smallest'] . "&largest=" . $options['biggest']); echo " " . wp_tag_cloud($options['args']. "&taxonomy=category&number=" . $options['number'] . "&orderby=" . $options['orderBy'] . "&order=" . $options['sortOrder'] . "&smallest=" . $options['smallest'] . "&largest=" . $options['biggest']); } else if($options['mode'] == 'pages'){ echo wp_list_pages("echo=0&title_li="); } else { if ( $options['args'] == '') { echo wp_tag_cloud($options['args']. "&taxonomy=". $options['mode'] ."&number=" . $options['number'] . "&orderby=" . $options['orderBy'] . "&order=" . $options['sortOrder'] . "&smallest=" . $options['smallest'] . "&largest=" . $options['biggest']); } }
Viewing 1 replies (of 1 total)