Commit b3d4de4b authored by lucha's avatar lucha

[auto] plugin: wordpress-popular-posts 4.0.6

parent 13a0faed
......@@ -429,10 +429,10 @@ class WPP_Admin {
}
if ( $dates ) {
return $where . " AND v.last_viewed BETWEEN '{$dates[0]} 00:00:00' AND '{$dates[1]} 23:59:59' AND p.post_password = '' AND p.post_status = 'publish' ";
return $where . " AND v.view_datetime BETWEEN '{$dates[0]} 00:00:00' AND '{$dates[1]} 23:59:59' AND p.post_password = '' AND p.post_status = 'publish' ";
}
return $where . " AND v.last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) AND p.post_password = '' AND p.post_status = 'publish' ";
return $where . " AND v.view_datetime > DATE_SUB('{$now}', INTERVAL {$interval}) AND p.post_password = '' AND p.post_status = 'publish' ";
}
......@@ -703,7 +703,7 @@ class WPP_Admin {
$admin_options['stats']['time_unit'] = $time_unit;
$this->options = $admin_options;
update_site_option( 'wpp_settings_config', $this->options );
update_option( 'wpp_settings_config', $this->options );
$response = array(
'status' => 'ok',
......@@ -960,7 +960,7 @@ class WPP_Admin {
if ( is_array($wpp_uploads_dir) && !empty($wpp_uploads_dir) ) {
$token = isset( $_POST['token'] ) ? $_POST['token'] : null;
$key = get_site_option( "wpp_rand" );
$key = get_option( "wpp_rand" );
if (
current_user_can( 'manage_options' )
......@@ -1013,7 +1013,7 @@ class WPP_Admin {
$token = $_POST['token'];
$clear = isset( $_POST['clear'] ) ? $_POST['clear'] : null;
$key = get_site_option( "wpp_rand" );
$key = get_option( "wpp_rand" );
if (
current_user_can( 'manage_options' )
......@@ -1072,14 +1072,14 @@ class WPP_Admin {
*/
private function flush_transients() {
$wpp_transients = get_site_option( 'wpp_transients' );
$wpp_transients = get_option( 'wpp_transients' );
if ( $wpp_transients && is_array( $wpp_transients ) && !empty( $wpp_transients ) ) {
for ( $t=0; $t < count( $wpp_transients ); $t++ )
delete_transient( $wpp_transients[$t] );
update_site_option( 'wpp_transients', array() );
update_option( 'wpp_transients', array() );
}
......@@ -1139,10 +1139,10 @@ class WPP_Admin {
public function upgrade_check(){
// Get WPP version
$wpp_ver = get_site_option( 'wpp_ver' );
$wpp_ver = get_option( 'wpp_ver' );
if ( !$wpp_ver ) {
add_site_option( 'wpp_ver', $this->version );
add_option( 'wpp_ver', $this->version );
} elseif ( version_compare( $wpp_ver, $this->version, '<' ) ) {
$this->upgrade();
}
......@@ -1160,10 +1160,10 @@ class WPP_Admin {
private function upgrade() {
// Keep the upgrade process from running too many times
if ( get_site_option('wpp_update') )
if ( get_option('wpp_update') )
return;
add_site_option( 'wpp_update', '1' );
add_option( 'wpp_update', '1' );
global $wpdb;
......@@ -1173,27 +1173,21 @@ class WPP_Admin {
// Validate the structure of the tables, create missing tables / fields if necessary
WPP_Activator::track_new_site();
// If summary is empty, import data from popularpostsdatacache
if ( !$wpdb->get_var( "SELECT COUNT(*) FROM {$prefix}summary" ) ) {
// popularpostsdatacache table is still there
if ( $wpdb->get_var( "SHOW TABLES LIKE '{$prefix}datacache'" ) ) {
$sql = "
INSERT INTO {$prefix}summary (postid, pageviews, view_date, last_viewed)
SELECT id, pageviews, day_no_time, day
FROM {$prefix}datacache
GROUP BY day_no_time, id
ORDER BY day_no_time DESC";
$result = $wpdb->query( $sql );
// Update summary table structure and indexes
$summaryFields = $wpdb->get_results( "SHOW FIELDS FROM {$prefix}summary;" );
foreach ( $summaryFields as $column ) {
if ( "last_viewed" == $column->Field ) {
$wpdb->query( "ALTER TABLE {$prefix}summary CHANGE last_viewed view_datetime datetime NOT NULL DEFAULT '0000-00-00 00:00:00', ADD KEY view_datetime (view_datetime);" );
}
}
$summaryIndexes = $wpdb->get_results( "SHOW INDEX FROM {$prefix}summary;" );
foreach( $summaryIndexes as $index ) {
if ( 'ID_date' == $index->Key_name ) {
$wpdb->query( "ALTER TABLE {$prefix}summary DROP INDEX ID_date, DROP INDEX last_viewed;" );
break;
}
}
// Deletes old caching tables, if found
$wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache, {$prefix}datacache_backup;" );
// Check storage engine
$storage_engine_data = $wpdb->get_var( "SELECT `ENGINE` FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA`='{$wpdb->dbname}' AND `TABLE_NAME`='{$prefix}data';" );
......@@ -1209,10 +1203,10 @@ class WPP_Admin {
}
// Update WPP version
update_site_option( 'wpp_ver', $this->version );
update_option( 'wpp_ver', $this->version );
// Remove upgrade flag
delete_site_option( 'wpp_update' );
delete_option( 'wpp_update' );
} // end __upgrade
......@@ -1268,7 +1262,7 @@ class WPP_Admin {
unset($_GET['activate']);
printf(
__('<div class="error"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</strong>.</p></div>', 'wordpress-popular-posts'),
__('<div class="notice notice-error"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</strong>.</p></div>', 'wordpress-popular-posts'),
join( '</p><p>', $errors ),
'WordPress Popular Posts'
);
......
......@@ -2,8 +2,15 @@
if ( basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__) )
exit( 'Please do not load this page directly' );
$tabs = array(
'stats' => __( 'Stats', 'wordpress-popular-posts' ),
'tools' => __( 'Tools', 'wordpress-popular-posts' ),
'params' => __( 'Parameters', 'wordpress-popular-posts' ),
'debug' => 'Debug'
);
// Set active tab
if ( isset( $_GET['tab'] ) )
if ( isset( $_GET['tab'] ) && isset( $tabs[$_GET['tab']] ) )
$current = $_GET['tab'];
else
$current = 'stats';
......@@ -22,8 +29,8 @@ if ( isset($_POST['section']) ) {
$this->options['stats']['post_type'] = empty( $_POST['stats_type'] ) ? "post,page" : $_POST['stats_type'];
$this->options['stats']['freshness'] = empty( $_POST['stats_freshness'] ) ? false : $_POST['stats_freshness'];
update_site_option( 'wpp_settings_config', $this->options );
echo "<div class=\"updated\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
update_option( 'wpp_settings_config', $this->options );
echo "<div class=\"notice notice-success is-dismissible\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
}
......@@ -37,8 +44,8 @@ if ( isset($_POST['section']) ) {
$this->options['tools']['link']['target'] = $_POST['link_target'];
$this->options['tools']['css'] = $_POST['css'];
update_site_option( 'wpp_settings_config', $this->options );
echo "<div class=\"updated\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
update_option( 'wpp_settings_config', $this->options );
echo "<div class=\"notice notice-success is-dismissible\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
}
}
......@@ -61,8 +68,8 @@ if ( isset($_POST['section']) ) {
$this->options['tools']['thumbnail']['resize'] = $_POST['thumb_field_resize'];
$this->options['tools']['thumbnail']['responsive'] = $_POST['thumb_responsive'];
update_site_option( 'wpp_settings_config', $this->options );
echo "<div class=\"updated\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
update_option( 'wpp_settings_config', $this->options );
echo "<div class=\"notice notice-success is-dismissible\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
}
......@@ -102,8 +109,8 @@ if ( isset($_POST['section']) ) {
? $_POST['sample_rate']
: 100;
update_site_option( 'wpp_settings_config', $this->options );
echo "<div class=\"updated\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
update_option( 'wpp_settings_config', $this->options );
echo "<div class=\"notice notice-success is-dismissible\"><p><strong>" . __( 'Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
}
}
......@@ -116,10 +123,10 @@ if ( $this->options['tools']['css'] && !file_exists( get_stylesheet_directory()
$rand = md5( uniqid(rand(), true) );
if ( !$wpp_rand = get_site_option("wpp_rand") ) {
add_site_option( "wpp_rand", $rand );
if ( !$wpp_rand = get_option("wpp_rand") ) {
add_option( "wpp_rand", $rand );
} else {
update_site_option( "wpp_rand", $rand );
update_option( "wpp_rand", $rand );
}
?>
......@@ -131,7 +138,7 @@ if ( !$wpp_rand = get_site_option("wpp_rand") ) {
ajaxurl,
{
action: 'wpp_clear_data',
token: '<?php echo get_site_option("wpp_rand"); ?>',
token: '<?php echo get_option("wpp_rand"); ?>',
clear: 'cache'
}, function(data){
var response = "";
......@@ -170,7 +177,7 @@ if ( !$wpp_rand = get_site_option("wpp_rand") ) {
ajaxurl,
{
action: 'wpp_clear_data',
token: '<?php echo get_site_option("wpp_rand"); ?>',
token: '<?php echo get_option("wpp_rand"); ?>',
clear: 'all'
}, function(data){
var response = "";
......@@ -209,7 +216,7 @@ if ( !$wpp_rand = get_site_option("wpp_rand") ) {
ajaxurl,
{
action: 'wpp_clear_thumbnail',
token: '<?php echo get_site_option("wpp_rand"); ?>'
token: '<?php echo get_option("wpp_rand"); ?>'
}, function(data){
var response = "";
......@@ -251,14 +258,6 @@ if ( !$wpp_rand = get_site_option("wpp_rand") ) {
</ul>
</nav>
<?php
$tabs = array(
'stats' => __( 'Stats', 'wordpress-popular-posts' ),
'tools' => __( 'Tools', 'wordpress-popular-posts' ),
'params' => __( 'Parameters', 'wordpress-popular-posts' ),
'about' => __( 'About', 'wordpress-popular-posts' )
);
?>
<div class="wpp-wrapper wpp-section-<?php echo $current; ?>">
<div class="wpp-header">
......@@ -585,7 +584,7 @@ $tabs = array(
<label for="log_expire_time"<?php echo ($this->options['tools']['log']['limit'] == 0) ? ' style="display:none;"' : ''; ?>><input type="text" id="log_expire_time" name="log_expire_time" value="<?php echo esc_attr( $this->options['tools']['log']['expires_after'] ); ?>" size="3" /> <?php _e("day(s)", 'wordpress-popular-posts'); ?></label>
<p class="description"<?php echo ($this->options['tools']['log']['limit'] == 0) ? ' style="display:none;"' : ''; ?>><?php _e("Data from entries that haven't been viewed within the specified time frame will be automatically discarded", 'wordpress-popular-posts'); ?>.</p>
<p class="description"<?php echo ($this->options['tools']['log']['limit'] == 0) ? ' style="display:none;"' : ''; ?>><?php _e("Data older than the specified time frame will be automatically discarded", 'wordpress-popular-posts'); ?>.</p>
<br<?php echo ($this->options['tools']['log']['limit'] == 1) ? ' style="display:none;"' : ''; ?> />
</td>
......@@ -967,4 +966,28 @@ $tabs = array(
</div>
<!-- End params -->
<!-- Start debug -->
<?php
global $wpdb, $wp_version;
$my_theme = wp_get_theme();
$site_plugins = get_plugins();
$plugin_names = array();
foreach( $site_plugins as $main_file => $plugin_meta ) :
$plugin_names[] = sanitize_text_field( $plugin_meta['Name'] . ' ' . $plugin_meta['Version'] );
endforeach;
?>
<div id="wpp_debug" <?php echo ( "debug" == $current ) ? '' : ' style="display: none;"'; ?>>
<p><strong>PHP version:</strong> <?php echo phpversion(); ?></p>
<p><strong>PHP extensions:</strong> <?php echo implode( ', ', get_loaded_extensions() ); ?></p>
<p><strong>Database version:</strong> <?php echo $wpdb->get_var( "SELECT VERSION();" ); ?></p>
<p><strong>InnoDB availability:</strong> <?php echo $wpdb->get_var( "SELECT SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE = 'InnoDB';" ); ?></p>
<p><strong>WordPress version:</strong> <?php echo $wp_version; ?></p>
<p><strong>Installed plugins:</strong> <?php echo implode( ', ', $plugin_names ); ?></p>
<p><strong>Theme:</strong> <?php echo $my_theme->get( 'Name' ) . ' (' . $my_theme->get( 'Version' ) . ') by ' . $my_theme->get( 'Author' ); ?></p>
</div>
<!-- End debug -->
</div>
\ No newline at end of file
......@@ -81,7 +81,7 @@ class WPP_Activator {
$prefix = $wpdb->prefix . "popularposts";
// fresh setup
if ( $prefix != $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") ) {
if ( "{$prefix}data" != $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") ) {
self::do_db_tables( $prefix );
}
......@@ -118,12 +118,11 @@ class WPP_Activator {
postid bigint(20) NOT NULL,
pageviews bigint(20) NOT NULL DEFAULT 1,
view_date date NOT NULL DEFAULT '0000-00-00',
last_viewed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
view_datetime datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (ID),
UNIQUE KEY ID_date (postid,view_date),
KEY postid (postid),
KEY view_date (view_date),
KEY last_viewed (last_viewed)
KEY view_datetime (view_datetime)
) {$charset_collate} ENGINE=InnoDB;";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
......
......@@ -76,7 +76,7 @@ class WPP_Helper {
* @return string
*/
public static function curdate() {
return gmdate( 'Y-m-d', ( time() + ( get_site_option( 'gmt_offset' ) * 3600 ) ) );
return gmdate( 'Y-m-d', ( time() + ( get_option( 'gmt_offset' ) * 3600 ) ) );
}
/**
......
......@@ -94,6 +94,8 @@ class WPP_Query {
}
// Get entries from these post types
$post_types = array( 'post', 'page' );
if ( isset($this->options['post_type']) && !empty($this->options['post_type']) ) {
$post_types = explode( ",", $this->options['post_type'] );
......@@ -188,6 +190,7 @@ class WPP_Query {
$post_ids = get_posts(
array(
'post_type' => $post_types,
'posts_per_page' => -1,
'tax_query' => array(
array(
......@@ -342,7 +345,7 @@ class WPP_Query {
$table = "`{$wpdb->prefix}popularpostssummary` v";
$join = "LEFT JOIN `{$wpdb->posts}` p ON v.postid = p.ID";
$where .= " AND v.last_viewed > DATE_SUB('{$now}', INTERVAL {$interval})";
$where .= " AND v.view_datetime > DATE_SUB('{$now}', INTERVAL {$interval})";
$groupby = "GROUP BY v.postid";
// Order by views
......@@ -390,7 +393,7 @@ class WPP_Query {
// Display views count, too
if ( isset($this->options['stats_tag']['views']) && $this->options['stats_tag']['views'] ) {
$fields .= ", IFNULL(v.pageviews, 0) AS pageviews";
$join .= " LEFT JOIN (SELECT postid, SUM(pageviews) AS pageviews FROM `{$wpdb->prefix}popularpostssummary` WHERE last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) GROUP BY postid) v ON p.ID = v.postid";
$join .= " LEFT JOIN (SELECT postid, SUM(pageviews) AS pageviews FROM `{$wpdb->prefix}popularpostssummary` WHERE view_datetime > DATE_SUB('{$now}', INTERVAL {$interval}) GROUP BY postid) v ON p.ID = v.postid";
}
}
......
......@@ -143,9 +143,9 @@ class WPP_Settings {
return $options[ 'widget_options' ];
}
if ( !$admin_options = get_site_option( 'wpp_settings_config' ) ) {
if ( !$admin_options = get_option( 'wpp_settings_config' ) ) {
$admin_options = $options[ 'admin_options' ];
add_site_option( 'wpp_settings_config', $admin_options );
add_option( 'wpp_settings_config', $admin_options );
}
else {
$options[ 'admin_options' ] = WPP_Helper::merge_array_r(
......
......@@ -51,7 +51,7 @@ function wpp_get_views($id = NULL, $range = NULL, $number_format = true) {
$now = current_time('mysql');
$query = "SELECT SUM(pageviews) FROM {$table_name}summary WHERE postid = '{$id}' AND last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) LIMIT 1;";
$query = "SELECT SUM(pageviews) FROM {$table_name}summary WHERE postid = '{$id}' AND view_datetime > DATE_SUB('{$now}', INTERVAL {$interval}) LIMIT 1;";
}
$result = $wpdb->get_var($query);
......
......@@ -54,6 +54,11 @@ class WPP_Widget extends WP_Widget {
*/
extract( $args, EXTR_SKIP );
$instance = WPP_Helper::merge_array_r(
WPP_Settings::$defaults[ 'widget_options' ],
(array) $instance
);
$markup = ( $instance['markup']['custom_html'] || has_filter('wpp_custom_html') || has_filter('wpp_post') )
? 'custom'
: 'regular';
......@@ -365,15 +370,15 @@ class WPP_Widget extends WP_Widget {
set_transient( $transient_name, $popular_posts, $expiration );
// Store transient in WPP transients array for garbage collection
$wpp_transients = get_site_option('wpp_transients');
$wpp_transients = get_option('wpp_transients');
if ( !$wpp_transients ) {
$wpp_transients = array( $transient_name );
add_site_option( 'wpp_transients', $wpp_transients );
add_option( 'wpp_transients', $wpp_transients );
} else {
if ( !in_array($transient_name, $wpp_transients) ) {
$wpp_transients[] = $transient_name;
update_site_option( 'wpp_transients', $wpp_transients );
update_option( 'wpp_transients', $wpp_transients );
}
}
......@@ -393,7 +398,7 @@ class WPP_Widget extends WP_Widget {
}
if ( defined('DOING_AJAX') && DOING_AJAX )
if ( defined('DOING_AJAX') && DOING_AJAX && !is_preview() )
wp_die();
}
......
......@@ -28,7 +28,7 @@ class WordPressPopularPosts {
public function __construct(){
$this->plugin_name = 'wordpress-popular-posts';
$this->version = '4.0.0';
$this->version = '4.0.6';
$this->load_dependencies();
$this->set_locale();
......
......@@ -53,7 +53,7 @@
<label for="<?php echo $this->get_field_id( 'pid' ); ?>"><?php _e('Post ID(s) to exclude', 'wordpress-popular-posts'); ?>:</label>
<input type="text" id="<?php echo $this->get_field_id( 'pid' ); ?>" name="<?php echo $this->get_field_name( 'pid' ); ?>" value="<?php echo $instance['pid']; ?>" class="widefat" /><br /><br />
<label for="<?php echo $this->get_field_id( 'tax_id' ); ?>"><?php _e('Taxonomy', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="https://github.com/cabrerahector/wordpress-popular-posts/wiki/5.-FAQ#what-is-category-ids-for" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>" target="_blank">?</a>]</small><br />
<label for="<?php echo $this->get_field_id( 'tax_id' ); ?>"><?php _e('Taxonomy', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="https://github.com/cabrerahector/wordpress-popular-posts/wiki/5.-FAQ#what-is-taxonomy-for" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>" target="_blank">?</a>]</small><br />
<?php
// Taxonomy filter
if ( $taxonomies = get_taxonomies( array('public' => true), 'objects' ) ) {
......
......@@ -4,8 +4,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WordPress Popular Posts\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
"POT-Creation-Date: 2017-09-19 15:36-0400\n"
"PO-Revision-Date: 2017-09-19 15:38-0400\n"
"POT-Creation-Date: 2017-09-26 13:17-0400\n"
"PO-Revision-Date: 2017-09-26 13:18-0400\n"
"Last-Translator: \n"
"Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
"Language: es_ES\n"
......@@ -69,49 +69,49 @@ msgstr ""
"\"%1$s\">Documentaci&oacute;n</a></li><li><a href=\"%2$s\">Soporte</a></li></"
"ul>"
#: ../admin/class-wordpress-popular-posts-admin.php:631
#: ../admin/class-wordpress-popular-posts-admin.php:750
#: ../admin/class-wordpress-popular-posts-admin.php:633
#: ../admin/class-wordpress-popular-posts-admin.php:752
#: ../admin/partials/admin.php:412 ../admin/partials/admin.php:459
#: ../includes/class-wordpress-popular-posts-output.php:689
#: ../includes/class-wordpress-popular-posts-output.php:720
#, php-format
msgid "1 view"
msgid_plural "%s views"
msgstr[0] "1 vista"
msgstr[1] "%s vistas"
#: ../admin/class-wordpress-popular-posts-admin.php:631
#: ../admin/class-wordpress-popular-posts-admin.php:805
#: ../admin/class-wordpress-popular-posts-admin.php:633
#: ../admin/class-wordpress-popular-posts-admin.php:807
#: ../admin/partials/admin.php:412 ../admin/partials/admin.php:459
#: ../includes/class-wordpress-popular-posts-output.php:670
#: ../includes/class-wordpress-popular-posts-output.php:701
#, php-format
msgid "1 comment"
msgid_plural "%s comments"
msgstr[0] "1 comentario"
msgstr[1] "%s comentarios"
#: ../admin/class-wordpress-popular-posts-admin.php:663
#: ../admin/class-wordpress-popular-posts-admin.php:665
#: ../includes/widget-form.php:17
msgid "Comments"
msgstr "Comentarios"
#: ../admin/class-wordpress-popular-posts-admin.php:667
#: ../admin/class-wordpress-popular-posts-admin.php:669
msgid "Views"
msgstr "Vistas"
#: ../admin/class-wordpress-popular-posts-admin.php:751
#: ../admin/class-wordpress-popular-posts-admin.php:806
#: ../admin/class-wordpress-popular-posts-admin.php:753
#: ../admin/class-wordpress-popular-posts-admin.php:808
#: ../admin/partials/admin.php:413 ../admin/partials/admin.php:460
msgid "View"
msgstr "Vista"
#: ../admin/class-wordpress-popular-posts-admin.php:751
#: ../admin/class-wordpress-popular-posts-admin.php:806
#: ../admin/class-wordpress-popular-posts-admin.php:753
#: ../admin/class-wordpress-popular-posts-admin.php:808
#: ../admin/partials/admin.php:413 ../admin/partials/admin.php:460
msgid "Edit"
msgstr "Editar"
#: ../admin/class-wordpress-popular-posts-admin.php:762
#: ../admin/class-wordpress-popular-posts-admin.php:817
#: ../admin/class-wordpress-popular-posts-admin.php:764
#: ../admin/class-wordpress-popular-posts-admin.php:819
#: ../admin/partials/admin.php:424 ../admin/partials/admin.php:471
msgid ""
"Looks like traffic to your site is a little light right now. <br />Spread "
......@@ -120,11 +120,11 @@ msgstr ""
"Parece que el tr&aacute;fico hacia tu sitio web est&aacute; un poco ligero. "
"<br />&iexcl;Haz un poco de promoci&oacute;n y regresa luego!"
#: ../admin/class-wordpress-popular-posts-admin.php:889
#: ../admin/class-wordpress-popular-posts-admin.php:887
msgid "Settings"
msgstr "Configuraci&oacute;n"
#: ../admin/class-wordpress-popular-posts-admin.php:1241
#: ../admin/class-wordpress-popular-posts-admin.php:1239
#, php-format
msgid ""
"Your PHP installation is too old. WordPress Popular Posts requires at least "
......@@ -136,7 +136,7 @@ msgstr ""
"contacta a tu proveedor de hosting y solicita que se actualice PHP a %1$s o "
"mejor."
#: ../admin/class-wordpress-popular-posts-admin.php:1248
#: ../admin/class-wordpress-popular-posts-admin.php:1246
#, php-format
msgid ""
"Your WordPress version is too old. WordPress Popular Posts requires at least "
......@@ -147,7 +147,7 @@ msgstr ""
"Posts requiere al menos la versi&oacute;n %1$s para funcionar correctamente. "
"Por favor actualiza tu blog via Escritorio &gt; Actualizaciones."
#: ../admin/class-wordpress-popular-posts-admin.php:1273
#: ../admin/class-wordpress-popular-posts-admin.php:1271
#, php-format
msgid ""
"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
......@@ -452,11 +452,10 @@ msgstr "d&iacute;a(s)"
#: ../admin/partials/admin.php:588
msgid ""
"Data from entries that haven't been viewed within the specified time frame "
"will be automatically discarded"
"Data older than the specified time frame will be automatically discarded"
msgstr ""
"Los datos de aquellas entradas que no han sido vistas en el tiempo "
"especificado ser&aacute;n autom&aacute;ticamente descartados"
"La data que sea m&aacute;s antigua que el tiempo especificado ser&aacute;n "
"autom&aacute;ticamente descartada"
#: ../admin/partials/admin.php:594
msgid "Ajaxify widget"
......@@ -1052,38 +1051,38 @@ msgstr ""
msgid "displays post/page date, requires stats_date=1"
msgstr "muestra la fecha de la entrada/p&aacute;gina, requiere stats_date=1"
#: ../includes/class-wordpress-popular-posts-output.php:95
#: ../includes/class-wordpress-popular-posts-output.php:126
msgid "Sorry. No data so far."
msgstr "Lo lamentamos. No hay nada que mostrar a&uacute;n."
#: ../includes/class-wordpress-popular-posts-output.php:466