Skip to content

Commit

Permalink
Merge pull request #32 from iamsayan/develop
Browse files Browse the repository at this point in the history
added v1.5.2
  • Loading branch information
iamsayan committed Jul 7, 2023
2 parents b5d2b6c + 4b15f90 commit 3c24337
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## 1.5.2
Release Date: 7th July, 2023

* Fixed: Global Republish was stopped on some cases.

## 1.5.1
Release Date: 5th July, 2023

Expand Down
4 changes: 2 additions & 2 deletions includes/Core/FetchPosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public function check_and_create_tasks() {
$in_process = get_transient( 'wpar_in_progress' );

if ( $this->valid_next_run() && ! $in_process ) {
// Lock the process to prevent duplicate schedules.
set_transient( 'wpar_in_progress', true, $this->get_interval() );
// Lock the process to prevent duplicate schedules for 30 seconds.
set_transient( 'wpar_in_progress', true, 30 );
// Update timestamp reference.
update_option( 'wpar_last_global_cron_run', $this->current_timestamp() );
// Create Tasks.
Expand Down
5 changes: 3 additions & 2 deletions includes/Core/PostRepublish.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,16 @@ private function get_publish_time( int $post_id, bool $single = false, bool $sch
$new_time = $datetime;
}
} else {
$lastposts = $this->get_posts( [
$args = (array) $this->do_filter( 'republish_position_args', [
'post_type' => $post->post_type,
'numberposts' => 1,
'offset' => 1,
'post_status' => 'publish',
'order' => 'DESC',
'orderby' => 'date',
'fields' => 'ids',
] );
], $post );
$lastposts = $this->get_posts( $args );
if ( ! empty($lastposts) ) {
foreach ( $lastposts as $lastpost ) {
$post_date = get_the_date( 'U', $lastpost );
Expand Down
4 changes: 2 additions & 2 deletions languages/wp-auto-republish.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPLv3.
msgid ""
msgstr ""
"Project-Id-Version: RevivePress 1.5.1\n"
"Project-Id-Version: RevivePress 1.5.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-auto-republish\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-07-05T03:06:44+00:00\n"
"POT-Creation-Date: 2023-07-07T12:27:36+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.5.0\n"
"X-Domain: wp-auto-republish\n"
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: infosatech
Tags: republish, republishing, old posts, old post, repost, old post promoter, post promoter, promotion, SEO, rss, plugin, posts
Requires at least: 5.2
Tested up to: 6.3
Stable tag: 1.5.1
Stable tag: 1.5.2
Requires PHP: 7.3
Donate link: https://www.paypal.me/iamsayan/
License: GPLv3
Expand Down Expand Up @@ -142,6 +142,11 @@ No, plugin can handle it efficiently by tinkering the Permalink Structure.

If you like RevivePress, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/wp-auto-republish/reviews/#new-post). It helps to keep development and support going strong. Thank you!

= 1.5.2 =
Release Date: 7th July, 2023

* Fixed: Global Republish was stopped on some cases.

= 1.5.1 =
Release Date: 5th July, 2023

Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'iamsayan/wp-auto-republish',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'reference' => 'b6caf23ba1930dfd6f54759b034fedfb89f18471',
'reference' => 'e07b742f62239aa3b72ffe5c94cd1db9bda2e611',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'iamsayan/wp-auto-republish' => array(
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'reference' => 'b6caf23ba1930dfd6f54759b034fedfb89f18471',
'reference' => 'e07b742f62239aa3b72ffe5c94cd1db9bda2e611',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down
4 changes: 2 additions & 2 deletions wp-auto-republish.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: RevivePress
* Plugin URI: https://wprevivepress.com?utm_source=landing&utm_medium=plugin
* Description: RevivePress, the all-in-one tool for republishing & cloning old posts and pages which push old posts to your front page, the top of archive pages, and back into RSS feeds. Ideal for sites with a large repository of evergreen content.
* Version: 1.5.1
* Version: 1.5.2
* Author: Sayan Datta
* Author URI: https://www.sayandatta.co.in
* License: GPLv3
Expand Down Expand Up @@ -61,7 +61,7 @@ final class RevivePress {
*
* @var string
*/
public $version = '1.5.1';
public $version = '1.5.2';

/**
* Minimum version of WordPress required to run RevivePress.
Expand Down

0 comments on commit 3c24337

Please sign in to comment.