Ultimate Tag Cloud Widget - Version 2.2-beta2

Version Description

= 2.2 =

  • New features, see the plugin page at wordpress.org for full details

= 2.1 =

  • New features, see the plugin page at wordpress.org for full details

= 2.0.1 =

  • Small bug fix in the widget options panel

= 2.0 =

  • New plugin architecture and a big rewrite of the plugin foundation. Watch out for breaking changes, please see http://exz.nu/utcwbreaking for more information.
Download this release

Release Info

Developer exz
Plugin Icon wp plugin Ultimate Tag Cloud Widget
Version 2.2-beta2
Comparing to
See all releases

Code changes from version 2.2-beta1 to 2.2-beta2

pages/settings.php CHANGED
@@ -36,8 +36,14 @@ if ( ! defined( 'ABSPATH' ) ) die();
36
 
37
  <a class="utcw-help" title="<?php _e('How the tag cloud should find tags to display. Popularity based selection is the default strategy which shows the most popular tags.', 'utcw') ?>">?</a>
38
  <strong><?php _e('Selection strategy:', 'utcw') ?></strong><br>
39
- <label><input type="radio" name="<?php echo $this->get_field_name('strategy') ?>" value="popularity" <?php if ($config->strategy === 'popularity') echo 'checked="checked"' ?>><?php _e('Popularity','utcw') ?></label><br>
40
- <label><input type="radio" name="<?php echo $this->get_field_name('strategy') ?>" value="random" <?php if ($config->strategy === 'random') echo 'checked="checked"' ?>><?php _e('Random','utcw') ?></label><br>
 
 
 
 
 
 
41
  <br>
42
 
43
  <a class="utcw-help"
36
 
37
  <a class="utcw-help" title="<?php _e('How the tag cloud should find tags to display. Popularity based selection is the default strategy which shows the most popular tags.', 'utcw') ?>">?</a>
38
  <strong><?php _e('Selection strategy:', 'utcw') ?></strong><br>
39
+ <label>
40
+ <input type="radio" name="<?php echo $this->get_field_name('strategy') ?>" value="popularity" <?php if ($config->strategy === 'popularity') echo 'checked="checked"' ?>>
41
+ <?php _e('Popularity','utcw') ?>
42
+ </label><br>
43
+ <label>
44
+ <input type="radio" name="<?php echo $this->get_field_name('strategy') ?>" value="random" <?php if ($config->strategy === 'random') echo 'checked="checked"' ?>>
45
+ <?php _e('Random','utcw') ?>
46
+ </label><br>
47
  <br>
48
 
49
  <a class="utcw-help"
src/Selection/RandomStrategy.php CHANGED
@@ -98,12 +98,8 @@ class RandomStrategy extends SelectionStrategy
98
 
99
  $query = $builder->getQuery();
100
  $parameters = $builder->getParameters();
 
101
 
102
- // Build query
103
- $query = join("\n", $query);
104
- $query = $this->db->prepare($query, $parameters);
105
-
106
- // Fetch terms from DB
107
  $result = $this->db->get_results($query);
108
  $this->query = $this->db->last_query;
109
 
98
 
99
  $query = $builder->getQuery();
100
  $parameters = $builder->getParameters();
101
+ $query = $this->db->prepare($query, $parameters);
102
 
 
 
 
 
 
103
  $result = $this->db->get_results($query);
104
  $this->query = $this->db->last_query;
105