WF Cookie Consent - Version 0.9.4

Version Description

Bugfix: The page-selector is now showing all entries.

Download this release

Release Info

Developer wunderfarm
Plugin Icon 128x128 WF Cookie Consent
Version 0.9.4
Comparing to
See all releases

Code changes from version 0.9.3 to 0.9.4

Files changed (2) hide show
  1. readme.txt +5 -2
  2. wf-cookie-consent.php +8 -7
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wunderfarm
3
  Donate link: http://wunderfarm.com/
4
  Tags: compliance, cookie law, cookielaw, cookies, cookiebar, policy, bar, eu cookie law, cookie law banner, cookiechoices, eu privacy directive, privacy, privacy directive, cookie consent, cookieconsent, Multi language, WPML, polylang, responsive, admin, code, content, embed, google, html, integration, javascript, links, login, marketing, page, pages, plugin, simple, text, url, wordpress, law,
5
  Requires at least: 3.0.1
6
- Tested up to: 4.2.2
7
- Stable tag: 0.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,6 +29,9 @@ WF Cookie Consent is the "wunderfarm-way" to show how your website complies with
29
 
30
  == Changelog ==
31
 
 
 
 
32
  = 0.9.3 =
33
  Updated Readme and Upgrade Notice.
34
 
3
  Donate link: http://wunderfarm.com/
4
  Tags: compliance, cookie law, cookielaw, cookies, cookiebar, policy, bar, eu cookie law, cookie law banner, cookiechoices, eu privacy directive, privacy, privacy directive, cookie consent, cookieconsent, Multi language, WPML, polylang, responsive, admin, code, content, embed, google, html, integration, javascript, links, login, marketing, page, pages, plugin, simple, text, url, wordpress, law,
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.3
7
+ Stable tag: 0.9.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
 
30
  == Changelog ==
31
 
32
+ = 0.9.4 =
33
+ Bugfix: The page-selector is now showing all entries.
34
+
35
  = 0.9.3 =
36
  Updated Readme and Upgrade Notice.
37
 
wf-cookie-consent.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
- Version: 0.9.3
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm
@@ -117,12 +117,13 @@ function wf_cookieconsent_setting_page_selector($args) {
117
  $options[$args['lang']][$args['fieldname']] = '';
118
 
119
  $wf_page_query = new WP_Query( array(
120
- 'post_type' => 'page',
121
- 'suppress_filters' => true, // With this option, WPML will not use any filter
122
- 'orderby' => 'menu_order',
123
- 'order'=>'desc',
124
- 'lang'=>'all' // With this option, Polylang will return all languages
125
- ) );
 
126
 
127
  echo "<select name='wf_cookieconsent_options[".$args['lang']."][".$args['fieldname']."]' id='wf_cookieconsent_options[".$args['lang']."][".$args['fieldname']."]'>";
128
  foreach ( $wf_page_query->posts as $post ) {
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
+ Version: 0.9.4
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm
117
  $options[$args['lang']][$args['fieldname']] = '';
118
 
119
  $wf_page_query = new WP_Query( array(
120
+ 'post_type' => 'page',
121
+ 'suppress_filters' => true, // With this option, WPML will not use any filter
122
+ 'orderby' => 'title',
123
+ 'order'=>'asc',
124
+ 'lang'=>'all', // With this option, Polylang will return all languages
125
+ 'nopaging'=>true
126
+ ) );
127
 
128
  echo "<select name='wf_cookieconsent_options[".$args['lang']."][".$args['fieldname']."]' id='wf_cookieconsent_options[".$args['lang']."][".$args['fieldname']."]'>";
129
  foreach ( $wf_page_query->posts as $post ) {