WordPress Popular Posts - Version 4.1.1

Version Description

If you're using a caching plugin, flushing its cache right after installing / upgrading to this version is highly recommended.

  • Improves compatibility with Cloudflare's Rocket Loader.
  • Code cleanup.
  • Fixes a minor bug (plugin returning the wrong excerpt when a translation plugin is used).
  • Bumps minimum required PHP version to 5.3.
Download this release

Release Info

Developer hcabrera
Plugin Icon 128x128 WordPress Popular Posts
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1.0 to 4.1.1

admin/class-wordpress-popular-posts-admin.php CHANGED
@@ -1292,7 +1292,7 @@ class WPP_Admin {
1292
 
1293
  global $wp_version;
1294
 
1295
- $php_min_version = '5.2';
1296
  $wp_min_version = '4.7';
1297
  $php_current_version = phpversion();
1298
  $errors = array();
1292
 
1293
  global $wp_version;
1294
 
1295
+ $php_min_version = '5.3';
1296
  $wp_min_version = '4.7';
1297
  $php_current_version = phpversion();
1298
  $errors = array();
admin/partials/admin.php CHANGED
@@ -591,7 +591,7 @@ if ( !$wpp_rand = get_option("wpp_rand") ) {
591
  </td>
592
  </tr>
593
  <tr valign="top">
594
- <th scope="row"><label for="cache"><?php _e("WPP Cache Expiry Policy", 'wordpress-popular-posts'); ?>:</label> <small>[<a href="https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#caching" target="_blank" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small></th>
595
  <td>
596
  <select name="cache" id="cache">
597
  <option <?php if ( !$this->options['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="0"><?php _e("Never cache", 'wordpress-popular-posts'); ?></option>
@@ -599,7 +599,7 @@ if ( !$wpp_rand = get_option("wpp_rand") ) {
599
  </select>
600
 
601
  <br />
602
- <p class="description"><?php _e("Sets WPP's cache expiration time. WPP can cache the popular list for a specified amount of time. Recommended for large / high traffic sites", 'wordpress-popular-posts'); ?>.</p>
603
  </td>
604
  </tr>
605
  <tr valign="top" <?php if ( !$this->options['tools']['cache']['active'] ) { ?>style="display:none;"<?php } ?> id="cache_refresh_interval">
591
  </td>
592
  </tr>
593
  <tr valign="top">
594
+ <th scope="row"><label for="cache"><?php _e("Data Caching", 'wordpress-popular-posts'); ?>:</label> <small>[<a href="https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#caching" target="_blank" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small></th>
595
  <td>
596
  <select name="cache" id="cache">
597
  <option <?php if ( !$this->options['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="0"><?php _e("Never cache", 'wordpress-popular-posts'); ?></option>
599
  </select>
600
 
601
  <br />
602
+ <p class="description"><?php _e("WPP can cache the popular list for a specified amount of time. Recommended for large / high traffic sites", 'wordpress-popular-posts'); ?>.</p>
603
  </td>
604
  </tr>
605
  <tr valign="top" <?php if ( !$this->options['tools']['cache']['active'] ) { ?>style="display:none;"<?php } ?> id="cache_refresh_interval">
includes/class-wordpress-popular-posts-output.php CHANGED
@@ -634,7 +634,7 @@ class WPP_Output {
634
 
635
  $excerpt = ( empty($the_post->post_excerpt) )
636
  ? $the_post->post_content
637
- : $post_object->post_excerpt;
638
  }
639
  else {
640
  $excerpt = ( empty( $post_object->post_excerpt ) )
634
 
635
  $excerpt = ( empty($the_post->post_excerpt) )
636
  ? $the_post->post_content
637
+ : $the_post->post_excerpt;
638
  }
639
  else {
640
  $excerpt = ( empty( $post_object->post_excerpt ) )
includes/class-wordpress-popular-posts-widget.php CHANGED
@@ -94,15 +94,15 @@ class WPP_Widget extends WP_Widget {
94
  } else {
95
  ?>
96
  <script type="text/javascript">
97
- window.addEventListener('DOMContentLoaded', function() {
98
  var wpp_widget_container = document.getElementById('<?php echo $widget_id; ?>');
99
 
100
  if ( 'undefined' != typeof WordPressPopularPosts ) {
101
  WordPressPopularPosts.get(
102
- wpp_params.ajax_url + ( wpp_params.rest_api && 1 == wpp_params.rest_api ? 'widget' : '' ),
103
  'action=wpp_get_popular&id=<?php echo $this->number; ?>',
104
  function( response ){
105
- wpp_widget_container.innerHTML += ( wpp_params.rest_api && 1 == wpp_params.rest_api ) ? JSON.parse( response ).widget : response;
106
 
107
  var event = null;
108
 
@@ -301,31 +301,12 @@ class WPP_Widget extends WP_Widget {
301
  }
302
 
303
  /**
304
- * Returns HTML list via AJAX
305
  *
306
  * @since 2.3.3
307
  */
308
  public function get_popular( $instance = null ) {
309
 
310
- if ( defined('DOING_AJAX') && DOING_AJAX ) {
311
-
312
- if ( isset( $_GET['id'] ) && WPP_helper::is_number( $_GET['id'] ) ) {
313
-
314
- $id = $_GET['id'];
315
- $widget_instances = $this->get_settings();
316
-
317
- if ( isset( $widget_instances[$id] ) ) {
318
- $instance = $widget_instances[$id];
319
-
320
- if ( !isset( $instance['widget_id'] ) ) {
321
- $instance['widget_id'] = $this->id;
322
- }
323
- }
324
-
325
- }
326
-
327
- }
328
-
329
  if ( is_array( $instance ) && !empty( $instance ) ) {
330
 
331
  // Return cached results
@@ -402,14 +383,6 @@ class WPP_Widget extends WP_Widget {
402
 
403
  }
404
 
405
- if (
406
- defined('DOING_AJAX')
407
- && DOING_AJAX && !is_preview()
408
- && !( is_singular() && isset( $_GET['fl_builder'] ) )
409
- ) {
410
- wp_die();
411
- }
412
-
413
  }
414
 
415
  } // end class WPP_Widget
94
  } else {
95
  ?>
96
  <script type="text/javascript">
97
+ document.addEventListener('DOMContentLoaded', function() {
98
  var wpp_widget_container = document.getElementById('<?php echo $widget_id; ?>');
99
 
100
  if ( 'undefined' != typeof WordPressPopularPosts ) {
101
  WordPressPopularPosts.get(
102
+ wpp_params.ajax_url + 'widget',
103
  'action=wpp_get_popular&id=<?php echo $this->number; ?>',
104
  function( response ){
105
+ wpp_widget_container.innerHTML += JSON.parse( response ).widget;
106
 
107
  var event = null;
108
 
301
  }
302
 
303
  /**
304
+ * Returns HTML list.
305
  *
306
  * @since 2.3.3
307
  */
308
  public function get_popular( $instance = null ) {
309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  if ( is_array( $instance ) && !empty( $instance ) ) {
311
 
312
  // Return cached results
383
 
384
  }
385
 
 
 
 
 
 
 
 
 
386
  }
387
 
388
  } // end class WPP_Widget
languages/wordpress-popular-posts-es_ES.mo CHANGED
Binary file
languages/wordpress-popular-posts-es_ES.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: WordPress Popular Posts\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
7
- "POT-Creation-Date: 2018-04-25 15:35-0400\n"
8
- "PO-Revision-Date: 2018-04-25 15:41-0400\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
11
  "Language: es_ES\n"
@@ -493,8 +493,8 @@ msgstr ""
493
  "populares sea guardada en cach&eacute;"
494
 
495
  #: ../admin/partials/admin.php:594
496
- msgid "WPP Cache Expiry Policy"
497
- msgstr "WPP Pol&iacute;tica de Expiraci&oacute;n del Cache"
498
 
499
  #: ../admin/partials/admin.php:594 ../admin/partials/admin.php:622
500
  #: ../includes/widget-form.php:3 ../includes/widget-form.php:50
@@ -513,13 +513,12 @@ msgstr "Habilitar cach&eacute;"
513
 
514
  #: ../admin/partials/admin.php:602
515
  msgid ""
516
- "Sets WPP's cache expiration time. WPP can cache the popular list for a "
517
- "specified amount of time. Recommended for large / high traffic sites"
518
  msgstr ""
519
- "Configura lel tiempo de expiraci&oacute;n del cache de WPP. WPP puede "
520
- "almacenar en cach&eacute; el listado de entradas populares por una cantidad "
521
- "de tiempo especificada. Recomendado para sitios web grandes / de alto "
522
- "tr&aacute;fico"
523
 
524
  #: ../admin/partials/admin.php:606
525
  msgid "Refresh cache every"
@@ -1113,76 +1112,76 @@ msgstr "publicado el %s"
1113
  msgid "under %s"
1114
  msgstr "bajo %s"
1115
 
1116
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:305
1117
  msgid "Return popular posts from specified custom post type(s)."
1118
  msgstr ""
1119
  "Devuelve entradas populares de los custom post type(s) especificado(s)."
1120
 
1121
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:312
1122
  msgid "The maximum number of popular posts to return."
1123
  msgstr "El m&aacute;ximo n&uacute;mero de entradas populares a devolver."
1124
 
1125
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:320
1126
  msgid ""
1127
  "Retrieve the most popular entries published within the specified time range."
1128
  msgstr ""
1129
  "Devuelve las entradas m&aacute;s populares publicadas en el rango de tiempo "
1130
  "especificado."
1131
 
1132
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:328
1133
  msgid "An offset point for the collection."
1134
  msgstr "Punto de offset para la colecci&oacute;n."
1135
 
1136
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:336
1137
  msgid "Set the sorting option of the popular posts."
1138
  msgstr "Configura el ordenado de las entradas populares."
1139
 
1140
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:344
1141
  msgid "Return posts from a specified time range."
1142
  msgstr "Devuelve entradas de un rango de tiempo especificado."
1143
 
1144
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:352
1145
- msgid "Especifies the time unit of the custom time range."
1146
  msgstr "Especifica la unidad de tiempo del rango de tiempo personalizado."
1147
 
1148
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:360
1149
- msgid "Especifies the number of time units of the custom time range."
1150
  msgstr ""
1151
  "Especifica el n&uacute;mero de unidades de tiempo del rango de tiempo "
1152
  "personalizado."
1153
 
1154
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:368
1155
  msgid "Post IDs to exclude."
1156
  msgstr "ID(s) de Entrada(s) a excluir."
1157
 
1158
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:376
1159
  msgid "Include posts in a specified taxonomy."
1160
  msgstr "Incluye entradas de una taxonom&iacute;a espec&iacute;fica."
1161
 
1162
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:384
1163
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
1164
  msgstr ""
1165
  "IDs de taxonom&iacute;a separados por comma (agrega un s&iacute;mbolo "
1166
  "negativo para excluir)."
1167
 
1168
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:392
1169
  msgid "Author ID(s)."
1170
  msgstr "ID(s) de Autor(es)."
1171
 
1172
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:412
1173
  msgid "Security nonce."
1174
  msgstr "Nonce de seguridad."
1175
 
1176
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:418
1177
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:451
1178
  msgid "The post / page ID."
1179
  msgstr "El ID de la entrada / p&aacute;gina."
1180
 
1181
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:425
1182
  msgid "Enables Data Sampling."
1183
  msgstr "Habilita el Sampleo de Datos."
1184
 
1185
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:432
1186
  msgid "Sets the Sampling Rate."
1187
  msgstr "Configura la rata de sampleo."
1188
 
@@ -1371,6 +1370,9 @@ msgstr "Antes / despu&eacute;s de las entradas populares"
1371
  msgid "Post HTML Markup"
1372
  msgstr "Markup HTML de la entrada"
1373
 
 
 
 
1374
  #~ msgid "Upload"
1375
  #~ msgstr "Subir"
1376
 
4
  msgstr ""
5
  "Project-Id-Version: WordPress Popular Posts\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
7
+ "POT-Creation-Date: 2018-06-25 18:07-0400\n"
8
+ "PO-Revision-Date: 2018-06-25 18:08-0400\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
11
  "Language: es_ES\n"
493
  "populares sea guardada en cach&eacute;"
494
 
495
  #: ../admin/partials/admin.php:594
496
+ msgid "Data Caching"
497
+ msgstr "Caché de Datos"
498
 
499
  #: ../admin/partials/admin.php:594 ../admin/partials/admin.php:622
500
  #: ../includes/widget-form.php:3 ../includes/widget-form.php:50
513
 
514
  #: ../admin/partials/admin.php:602
515
  msgid ""
516
+ "WPP can cache the popular list for a specified amount of time. Recommended "
517
+ "for large / high traffic sites"
518
  msgstr ""
519
+ "WPP puede almacenar en cach&eacute; el listado de entradas populares por una "
520
+ "cantidad de tiempo especificada. Recomendado para sitios web grandes / de "
521
+ "alto tr&aacute;fico"
 
522
 
523
  #: ../admin/partials/admin.php:606
524
  msgid "Refresh cache every"
1112
  msgid "under %s"
1113
  msgstr "bajo %s"
1114
 
1115
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:309
1116
  msgid "Return popular posts from specified custom post type(s)."
1117
  msgstr ""
1118
  "Devuelve entradas populares de los custom post type(s) especificado(s)."
1119
 
1120
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:316
1121
  msgid "The maximum number of popular posts to return."
1122
  msgstr "El m&aacute;ximo n&uacute;mero de entradas populares a devolver."
1123
 
1124
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:324
1125
  msgid ""
1126
  "Retrieve the most popular entries published within the specified time range."
1127
  msgstr ""
1128
  "Devuelve las entradas m&aacute;s populares publicadas en el rango de tiempo "
1129
  "especificado."
1130
 
1131
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:332
1132
  msgid "An offset point for the collection."
1133
  msgstr "Punto de offset para la colecci&oacute;n."
1134
 
1135
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:340
1136
  msgid "Set the sorting option of the popular posts."
1137
  msgstr "Configura el ordenado de las entradas populares."
1138
 
1139
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:348
1140
  msgid "Return posts from a specified time range."
1141
  msgstr "Devuelve entradas de un rango de tiempo especificado."
1142
 
1143
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:356
1144
+ msgid "Specifies the time unit of the custom time range."
1145
  msgstr "Especifica la unidad de tiempo del rango de tiempo personalizado."
1146
 
1147
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:364
1148
+ msgid "Specifies the number of time units of the custom time range."
1149
  msgstr ""
1150
  "Especifica el n&uacute;mero de unidades de tiempo del rango de tiempo "
1151
  "personalizado."
1152
 
1153
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:372
1154
  msgid "Post IDs to exclude."
1155
  msgstr "ID(s) de Entrada(s) a excluir."
1156
 
1157
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:380
1158
  msgid "Include posts in a specified taxonomy."
1159
  msgstr "Incluye entradas de una taxonom&iacute;a espec&iacute;fica."
1160
 
1161
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:388
1162
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
1163
  msgstr ""
1164
  "IDs de taxonom&iacute;a separados por comma (agrega un s&iacute;mbolo "
1165
  "negativo para excluir)."
1166
 
1167
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:396
1168
  msgid "Author ID(s)."
1169
  msgstr "ID(s) de Autor(es)."
1170
 
1171
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:416
1172
  msgid "Security nonce."
1173
  msgstr "Nonce de seguridad."
1174
 
1175
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:422
1176
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:455
1177
  msgid "The post / page ID."
1178
  msgstr "El ID de la entrada / p&aacute;gina."
1179
 
1180
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:429
1181
  msgid "Enables Data Sampling."
1182
  msgstr "Habilita el Sampleo de Datos."
1183
 
1184
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:436
1185
  msgid "Sets the Sampling Rate."
1186
  msgstr "Configura la rata de sampleo."
1187
 
1370
  msgid "Post HTML Markup"
1371
  msgstr "Markup HTML de la entrada"
1372
 
1373
+ #~ msgid "WPP Cache Expiry Policy"
1374
+ #~ msgstr "WPP Pol&iacute;tica de Expiraci&oacute;n del Cache"
1375
+
1376
  #~ msgid "Upload"
1377
  #~ msgstr "Subir"
1378
 
languages/wordpress-popular-posts-es_VE.mo CHANGED
Binary file
languages/wordpress-popular-posts-es_VE.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: WordPress Popular Posts\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
7
- "POT-Creation-Date: 2018-04-25 15:42-0400\n"
8
- "PO-Revision-Date: 2018-04-25 15:47-0400\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
11
  "Language: es_VE\n"
@@ -493,8 +493,8 @@ msgstr ""
493
  "populares sea guardada en cach&eacute;"
494
 
495
  #: ../admin/partials/admin.php:594
496
- msgid "WPP Cache Expiry Policy"
497
- msgstr "WPP Pol&iacute;tica de Expiraci&oacute;n del Cache"
498
 
499
  #: ../admin/partials/admin.php:594 ../admin/partials/admin.php:622
500
  #: ../includes/widget-form.php:3 ../includes/widget-form.php:50
@@ -513,13 +513,12 @@ msgstr "Habilitar cach&eacute;"
513
 
514
  #: ../admin/partials/admin.php:602
515
  msgid ""
516
- "Sets WPP's cache expiration time. WPP can cache the popular list for a "
517
- "specified amount of time. Recommended for large / high traffic sites"
518
  msgstr ""
519
- "Configura lel tiempo de expiraci&oacute;n del cache de WPP. WPP puede "
520
- "almacenar en cach&eacute; el listado de entradas populares por una cantidad "
521
- "de tiempo especificada. Recomendado para sitios web grandes / de alto "
522
- "tr&aacute;fico"
523
 
524
  #: ../admin/partials/admin.php:606
525
  msgid "Refresh cache every"
@@ -1113,76 +1112,76 @@ msgstr "publicado el %s"
1113
  msgid "under %s"
1114
  msgstr "bajo %s"
1115
 
1116
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:305
1117
  msgid "Return popular posts from specified custom post type(s)."
1118
  msgstr ""
1119
  "Devuelve entradas populares de los custom post type(s) especificado(s)."
1120
 
1121
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:312
1122
  msgid "The maximum number of popular posts to return."
1123
  msgstr "El m&aacute;ximo n&uacute;mero de entradas populares a devolver."
1124
 
1125
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:320
1126
  msgid ""
1127
  "Retrieve the most popular entries published within the specified time range."
1128
  msgstr ""
1129
  "Devuelve las entradas m&aacute;s populares publicadas en el rango de tiempo "
1130
  "especificado."
1131
 
1132
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:328
1133
  msgid "An offset point for the collection."
1134
  msgstr "Punto de offset para la colecci&oacute;n."
1135
 
1136
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:336
1137
  msgid "Set the sorting option of the popular posts."
1138
  msgstr "Configura el ordenado de las entradas populares."
1139
 
1140
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:344
1141
  msgid "Return posts from a specified time range."
1142
  msgstr "Devuelve entradas de un rango de tiempo especificado."
1143
 
1144
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:352
1145
- msgid "Especifies the time unit of the custom time range."
1146
  msgstr "Especifica la unidad de tiempo del rango de tiempo personalizado."
1147
 
1148
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:360
1149
- msgid "Especifies the number of time units of the custom time range."
1150
  msgstr ""
1151
  "Especifica el n&uacute;mero de unidades de tiempo del rango de tiempo "
1152
  "personalizado."
1153
 
1154
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:368
1155
  msgid "Post IDs to exclude."
1156
  msgstr "ID(s) de Entrada(s) a excluir."
1157
 
1158
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:376
1159
  msgid "Include posts in a specified taxonomy."
1160
  msgstr "Incluye entradas de una taxonom&iacute;a espec&iacute;fica."
1161
 
1162
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:384
1163
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
1164
  msgstr ""
1165
  "IDs de taxonom&iacute;a separados por comma (agrega un s&iacute;mbolo "
1166
  "negativo para excluir)."
1167
 
1168
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:392
1169
  msgid "Author ID(s)."
1170
  msgstr "ID(s) de Autor(es)."
1171
 
1172
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:412
1173
  msgid "Security nonce."
1174
  msgstr "Nonce de seguridad."
1175
 
1176
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:418
1177
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:451
1178
  msgid "The post / page ID."
1179
  msgstr "El ID de la entrada / p&aacute;gina."
1180
 
1181
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:425
1182
  msgid "Enables Data Sampling."
1183
  msgstr "Habilita el Sampleo de Datos."
1184
 
1185
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:432
1186
  msgid "Sets the Sampling Rate."
1187
  msgstr "Configura la rata de sampleo."
1188
 
@@ -1371,6 +1370,9 @@ msgstr "Antes / despu&eacute;s de las entradas populares"
1371
  msgid "Post HTML Markup"
1372
  msgstr "Markup HTML de la entrada"
1373
 
 
 
 
1374
  #~ msgid "Upload"
1375
  #~ msgstr "Subir"
1376
 
4
  msgstr ""
5
  "Project-Id-Version: WordPress Popular Posts\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
7
+ "POT-Creation-Date: 2018-06-25 18:08-0400\n"
8
+ "PO-Revision-Date: 2018-06-25 18:09-0400\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
11
  "Language: es_VE\n"
493
  "populares sea guardada en cach&eacute;"
494
 
495
  #: ../admin/partials/admin.php:594
496
+ msgid "Data Caching"
497
+ msgstr "Caché de Datos"
498
 
499
  #: ../admin/partials/admin.php:594 ../admin/partials/admin.php:622
500
  #: ../includes/widget-form.php:3 ../includes/widget-form.php:50
513
 
514
  #: ../admin/partials/admin.php:602
515
  msgid ""
516
+ "WPP can cache the popular list for a specified amount of time. Recommended "
517
+ "for large / high traffic sites"
518
  msgstr ""
519
+ "WPP puede almacenar en cach&eacute; el listado de entradas populares por una "
520
+ "cantidad de tiempo especificada. Recomendado para sitios web grandes / de "
521
+ "alto tr&aacute;fico"
 
522
 
523
  #: ../admin/partials/admin.php:606
524
  msgid "Refresh cache every"
1112
  msgid "under %s"
1113
  msgstr "bajo %s"
1114
 
1115
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:309
1116
  msgid "Return popular posts from specified custom post type(s)."
1117
  msgstr ""
1118
  "Devuelve entradas populares de los custom post type(s) especificado(s)."
1119
 
1120
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:316
1121
  msgid "The maximum number of popular posts to return."
1122
  msgstr "El m&aacute;ximo n&uacute;mero de entradas populares a devolver."
1123
 
1124
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:324
1125
  msgid ""
1126
  "Retrieve the most popular entries published within the specified time range."
1127
  msgstr ""
1128
  "Devuelve las entradas m&aacute;s populares publicadas en el rango de tiempo "
1129
  "especificado."
1130
 
1131
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:332
1132
  msgid "An offset point for the collection."
1133
  msgstr "Punto de offset para la colecci&oacute;n."
1134
 
1135
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:340
1136
  msgid "Set the sorting option of the popular posts."
1137
  msgstr "Configura el ordenado de las entradas populares."
1138
 
1139
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:348
1140
  msgid "Return posts from a specified time range."
1141
  msgstr "Devuelve entradas de un rango de tiempo especificado."
1142
 
1143
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:356
1144
+ msgid "Specifies the time unit of the custom time range."
1145
  msgstr "Especifica la unidad de tiempo del rango de tiempo personalizado."
1146
 
1147
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:364
1148
+ msgid "Specifies the number of time units of the custom time range."
1149
  msgstr ""
1150
  "Especifica el n&uacute;mero de unidades de tiempo del rango de tiempo "
1151
  "personalizado."
1152
 
1153
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:372
1154
  msgid "Post IDs to exclude."
1155
  msgstr "ID(s) de Entrada(s) a excluir."
1156
 
1157
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:380
1158
  msgid "Include posts in a specified taxonomy."
1159
  msgstr "Incluye entradas de una taxonom&iacute;a espec&iacute;fica."
1160
 
1161
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:388
1162
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
1163
  msgstr ""
1164
  "IDs de taxonom&iacute;a separados por comma (agrega un s&iacute;mbolo "
1165
  "negativo para excluir)."
1166
 
1167
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:396
1168
  msgid "Author ID(s)."
1169
  msgstr "ID(s) de Autor(es)."
1170
 
1171
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:416
1172
  msgid "Security nonce."
1173
  msgstr "Nonce de seguridad."
1174
 
1175
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:422
1176
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:455
1177
  msgid "The post / page ID."
1178
  msgstr "El ID de la entrada / p&aacute;gina."
1179
 
1180
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:429
1181
  msgid "Enables Data Sampling."
1182
  msgstr "Habilita el Sampleo de Datos."
1183
 
1184
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:436
1185
  msgid "Sets the Sampling Rate."
1186
  msgstr "Configura la rata de sampleo."
1187
 
1370
  msgid "Post HTML Markup"
1371
  msgstr "Markup HTML de la entrada"
1372
 
1373
+ #~ msgid "WPP Cache Expiry Policy"
1374
+ #~ msgstr "WPP Pol&iacute;tica de Expiraci&oacute;n del Cache"
1375
+
1376
  #~ msgid "Upload"
1377
  #~ msgstr "Subir"
1378
 
languages/wordpress-popular-posts.pot CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Popular Posts\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
8
- "POT-Creation-Date: 2018-04-25 15:35-0400\n"
9
  "PO-Revision-Date: 2015-04-24 13:30-0430\n"
10
  "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
11
  "Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
@@ -442,7 +442,7 @@ msgid ""
442
  msgstr ""
443
 
444
  #: ../admin/partials/admin.php:594
445
- msgid "WPP Cache Expiry Policy"
446
  msgstr ""
447
 
448
  #: ../admin/partials/admin.php:594 ../admin/partials/admin.php:622
@@ -462,8 +462,8 @@ msgstr ""
462
 
463
  #: ../admin/partials/admin.php:602
464
  msgid ""
465
- "Sets WPP's cache expiration time. WPP can cache the popular list for a specified "
466
- "amount of time. Recommended for large / high traffic sites"
467
  msgstr ""
468
 
469
  #: ../admin/partials/admin.php:606
@@ -945,68 +945,68 @@ msgstr ""
945
  msgid "under %s"
946
  msgstr ""
947
 
948
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:305
949
  msgid "Return popular posts from specified custom post type(s)."
950
  msgstr ""
951
 
952
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:312
953
  msgid "The maximum number of popular posts to return."
954
  msgstr ""
955
 
956
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:320
957
  msgid "Retrieve the most popular entries published within the specified time range."
958
  msgstr ""
959
 
960
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:328
961
  msgid "An offset point for the collection."
962
  msgstr ""
963
 
964
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:336
965
  msgid "Set the sorting option of the popular posts."
966
  msgstr ""
967
 
968
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:344
969
  msgid "Return posts from a specified time range."
970
  msgstr ""
971
 
972
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:352
973
- msgid "Especifies the time unit of the custom time range."
974
  msgstr ""
975
 
976
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:360
977
- msgid "Especifies the number of time units of the custom time range."
978
  msgstr ""
979
 
980
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:368
981
  msgid "Post IDs to exclude."
982
  msgstr ""
983
 
984
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:376
985
  msgid "Include posts in a specified taxonomy."
986
  msgstr ""
987
 
988
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:384
989
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
990
  msgstr ""
991
 
992
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:392
993
  msgid "Author ID(s)."
994
  msgstr ""
995
 
996
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:412
997
  msgid "Security nonce."
998
  msgstr ""
999
 
1000
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:418
1001
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:451
1002
  msgid "The post / page ID."
1003
  msgstr ""
1004
 
1005
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:425
1006
  msgid "Enables Data Sampling."
1007
  msgstr ""
1008
 
1009
- #: ../includes/class-wordpress-popular-posts-rest-controller.php:432
1010
  msgid "Sets the Sampling Rate."
1011
  msgstr ""
1012
 
5
  msgstr ""
6
  "Project-Id-Version: WordPress Popular Posts\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
8
+ "POT-Creation-Date: 2018-06-25 18:07-0400\n"
9
  "PO-Revision-Date: 2015-04-24 13:30-0430\n"
10
  "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
11
  "Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
442
  msgstr ""
443
 
444
  #: ../admin/partials/admin.php:594
445
+ msgid "Data Caching"
446
  msgstr ""
447
 
448
  #: ../admin/partials/admin.php:594 ../admin/partials/admin.php:622
462
 
463
  #: ../admin/partials/admin.php:602
464
  msgid ""
465
+ "WPP can cache the popular list for a specified amount of time. Recommended for large / "
466
+ "high traffic sites"
467
  msgstr ""
468
 
469
  #: ../admin/partials/admin.php:606
945
  msgid "under %s"
946
  msgstr ""
947
 
948
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:309
949
  msgid "Return popular posts from specified custom post type(s)."
950
  msgstr ""
951
 
952
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:316
953
  msgid "The maximum number of popular posts to return."
954
  msgstr ""
955
 
956
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:324
957
  msgid "Retrieve the most popular entries published within the specified time range."
958
  msgstr ""
959
 
960
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:332
961
  msgid "An offset point for the collection."
962
  msgstr ""
963
 
964
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:340
965
  msgid "Set the sorting option of the popular posts."
966
  msgstr ""
967
 
968
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:348
969
  msgid "Return posts from a specified time range."
970
  msgstr ""
971
 
972
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:356
973
+ msgid "Specifies the time unit of the custom time range."
974
  msgstr ""
975
 
976
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:364
977
+ msgid "Specifies the number of time units of the custom time range."
978
  msgstr ""
979
 
980
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:372
981
  msgid "Post IDs to exclude."
982
  msgstr ""
983
 
984
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:380
985
  msgid "Include posts in a specified taxonomy."
986
  msgstr ""
987
 
988
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:388
989
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
990
  msgstr ""
991
 
992
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:396
993
  msgid "Author ID(s)."
994
  msgstr ""
995
 
996
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:416
997
  msgid "Security nonce."
998
  msgstr ""
999
 
1000
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:422
1001
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:455
1002
  msgid "The post / page ID."
1003
  msgstr ""
1004
 
1005
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:429
1006
  msgid "Enables Data Sampling."
1007
  msgstr ""
1008
 
1009
+ #: ../includes/class-wordpress-popular-posts-rest-controller.php:436
1010
  msgid "Sets the Sampling Rate."
1011
  msgstr ""
1012
 
public/class-wordpress-popular-posts-public.php CHANGED
@@ -110,7 +110,7 @@ class WPP_Public {
110
  'rest_api' => (int) $wp_rest_api,
111
  'sampling_active' => (int) $this->admin_options['tools']['sampling']['active'],
112
  'sampling_rate' => $this->admin_options['tools']['sampling']['rate'],
113
- 'ajax_url' => ( $wp_rest_api ) ? esc_url_raw( rest_url( 'wordpress-popular-posts/v1/popular-posts/' ) ) : admin_url( 'admin-ajax.php', is_ssl() ? 'https' : 'http' ),
114
  'action' => 'update_views_ajax',
115
  'ID' => $is_single,
116
  'token' => ( $wp_rest_api ) ? wp_create_nonce( 'wp_rest' ) : wp_create_nonce( 'wpp-token' ),
110
  'rest_api' => (int) $wp_rest_api,
111
  'sampling_active' => (int) $this->admin_options['tools']['sampling']['active'],
112
  'sampling_rate' => $this->admin_options['tools']['sampling']['rate'],
113
+ 'ajax_url' => esc_url_raw( rest_url( 'wordpress-popular-posts/v1/popular-posts/' ) ),
114
  'action' => 'update_views_ajax',
115
  'ID' => $is_single,
116
  'token' => ( $wp_rest_api ) ? wp_create_nonce( 'wp_rest' ) : wp_create_nonce( 'wpp-token' ),
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabr
4
  Tags: popular, posts, widget, popularity, top
5
  Requires at least: 4.7
6
  Tested up to: 4.9.6
7
- Requires PHP: 5.2
8
- Stable tag: 4.1.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -85,6 +85,15 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
85
  4. WordPress Popular Posts Stats panel.
86
 
87
  == Changelog ==
 
 
 
 
 
 
 
 
 
88
  = 4.1.0 =
89
 
90
  **If you're using a caching plugin, flushing its cache right after installing / upgrading to this version is highly recommended.**
@@ -103,13 +112,6 @@ See the [Release notes](https://cabrerahector.com/wordpress/wordpress-popular-po
103
  - Improvements to WPP's upgrade process.
104
  - Fixes ALT text missing from IMG tags.
105
 
106
- = 4.0.12 =
107
-
108
- - Fixes bug where WPP didn't return the right URL when using Polylang / WPML.
109
- - Fixes a compatibility issue with Yoast SEO (and potentially other plugins as well).
110
- - Improves compatibility with MySQL 5.7+.
111
- - Other minor fixes and improvements.
112
-
113
  See [full changelog](https://github.com/cabrerahector/wordpress-popular-posts/blob/master/changelog.md).
114
 
115
  == Credits ==
4
  Tags: popular, posts, widget, popularity, top
5
  Requires at least: 4.7
6
  Tested up to: 4.9.6
7
+ Requires PHP: 5.3
8
+ Stable tag: 4.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
85
  4. WordPress Popular Posts Stats panel.
86
 
87
  == Changelog ==
88
+ = 4.1.1 =
89
+
90
+ **If you're using a caching plugin, flushing its cache right after installing / upgrading to this version is highly recommended.**
91
+
92
+ - Improves compatibility with Cloudflare's Rocket Loader.
93
+ - Code cleanup.
94
+ - Fixes a minor bug (plugin returning the wrong excerpt when a translation plugin is used).
95
+ - Bumps minimum required PHP version to 5.3.
96
+
97
  = 4.1.0 =
98
 
99
  **If you're using a caching plugin, flushing its cache right after installing / upgrading to this version is highly recommended.**
112
  - Improvements to WPP's upgrade process.
113
  - Fixes ALT text missing from IMG tags.
114
 
 
 
 
 
 
 
 
115
  See [full changelog](https://github.com/cabrerahector/wordpress-popular-posts/blob/master/changelog.md).
116
 
117
  == Credits ==
wordpress-popular-posts.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WordPress Popular Posts
17
  * Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
18
  * Description: A highly customizable widget that displays the most popular posts on your blog.
19
- * Version: 4.1.0
20
  * Author: Hector Cabrera
21
  * Author URI: https://cabrerahector.com/
22
  * License: GPL-2.0+
@@ -29,7 +29,7 @@ if ( ! defined( 'WPINC' ) ) {
29
  die();
30
  }
31
 
32
- define( 'WPP_VER', '4.1.0' );
33
 
34
  /*
35
  * The code that runs during plugin activation.
16
  * Plugin Name: WordPress Popular Posts
17
  * Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
18
  * Description: A highly customizable widget that displays the most popular posts on your blog.
19
+ * Version: 4.1.1
20
  * Author: Hector Cabrera
21
  * Author URI: https://cabrerahector.com/
22
  * License: GPL-2.0+
29
  die();
30
  }
31
 
32
+ define( 'WPP_VER', '4.1.1' );
33
 
34
  /*
35
  * The code that runs during plugin activation.