Skip to content

Commit

Permalink
version bump and fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvo7670 committed Jul 7, 2024
1 parent 6d3da73 commit 2c3023b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 27 deletions.
23 changes: 17 additions & 6 deletions includes/Admin/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,26 @@ public function wpscp_future_post_rest_route_output($request)

$allData = $this->calendar_view($posts_1, $allData);
$allData = $this->calendar_view($posts_2, $allData, true);
$allData = $this->advanced_scheduled_view($posts_1, $allData);
$allData = $this->advanced_scheduled_view($post_type, $allData);
return $allData;
}

protected function advanced_scheduled_view( $posts, $allData ) {
global $post;
if ($posts && is_array($posts)) {
foreach ( $posts as $post ) {
setup_postdata( $post );
protected function advanced_scheduled_view( $post_type, $allData ) {
$args = array(
'post_type' => $post_type,
'post_status' => 'publish',
'meta_query' => array(
array(
'key' => '_wpscppro_advance_schedule_date',
'compare' => 'EXISTS',
),
),
'posts_per_page' => -1,
);
$posts = new \WP_Query($args);
if ($posts->have_posts()) {
while ($posts->have_posts()) {
$posts->the_post();
$advance_schedule_date = $this->wpsp_get_advance_schedule_date( get_the_ID() );
if(empty($advance_schedule_date)){
continue;
Expand Down
34 changes: 17 additions & 17 deletions languages/wp-scheduled-posts.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the SchedulePress plugin.
msgid ""
msgstr ""
"Project-Id-Version: SchedulePress 5.1.2\n"
"Project-Id-Version: SchedulePress 5.1.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-scheduled-posts\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-06-10T07:08:31+00:00\n"
"POT-Creation-Date: 2024-07-07T08:35:43+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: wp-scheduled-posts\n"
Expand Down Expand Up @@ -239,19 +239,19 @@ msgstr ""
msgid "Your post successfully scheduled"
msgstr ""

#: includes/Admin/Calendar.php:468
#: includes/Admin/Calendar.php:632
#: includes/Admin/Calendar.php:660
#: includes/Admin/Calendar.php:479
#: includes/Admin/Calendar.php:643
#: includes/Admin/Calendar.php:671
msgid "Post type isn't allowed in Settings page."
msgstr ""

#: includes/Admin/Calendar.php:589
#: includes/Admin/Calendar.php:600
msgid "Type is required."
msgstr ""

#: includes/Admin/Calendar.php:592
#: includes/Admin/Calendar.php:614
#: includes/Social/SocialProfile.php:61
#: includes/Admin/Calendar.php:603
#: includes/Admin/Calendar.php:625
#: includes/Social/SocialProfile.php:72
msgid "Something went wrong."
msgstr ""

Expand Down Expand Up @@ -878,7 +878,7 @@ msgstr ""
#: includes/Social/Instagram.php:185
#: includes/Social/Linkedin.php:181
#: includes/Social/Pinterest.php:230
#: includes/Social/Twitter.php:164
#: includes/Social/Twitter.php:174
msgid "Your max share post limit has been executed!!"
msgstr ""

Expand Down Expand Up @@ -910,17 +910,17 @@ msgstr ""

#: includes/Social/InstantShare.php:325
#: includes/Social/InstantShare.php:425
#: includes/Social/SocialProfile.php:201
#: includes/Social/SocialProfile.php:273
#: includes/Social/SocialProfile.php:637
#: includes/Social/SocialProfile.php:212
#: includes/Social/SocialProfile.php:284
#: includes/Social/SocialProfile.php:653
msgid "Invalid nonce."
msgstr ""

#: includes/Social/InstantShare.php:330
#: includes/Social/InstantShare.php:431
#: includes/Social/SocialProfile.php:205
#: includes/Social/SocialProfile.php:279
#: includes/Social/SocialProfile.php:643
#: includes/Social/SocialProfile.php:216
#: includes/Social/SocialProfile.php:290
#: includes/Social/SocialProfile.php:659
msgid "You are unauthorized to access social profiles."
msgstr ""

Expand All @@ -940,7 +940,7 @@ msgstr ""
msgid "Multi Profile is a Premium Feature. To use this feature, Upgrade to Pro."
msgstr ""

#: includes/Social/Twitter.php:217
#: includes/Social/Twitter.php:227
msgid "Twitter Connection Problem. error code: "
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wp-scheduled-posts",
"version": "5.1.2",
"version": "5.1.3",
"description": "=== WP Scheduled Posts ===\r Contributors: wpdevteam, Asif2BD, re_enter_rupok, onetarek, hakimcseru, nayanchamp7\r Tags: post schedule, editor calendar, schedule-calendar, schedule bar, scheduled posts, schedule, schedule widget, scheduler, schedule menu bar, admin bar, dashboard widget, missed scheduled, calendar, missed schedule, future post, schedule issue, post later, admin bar, admin, multi author\r Requires at least: 4.0\r Tested up to: 5.0\r Requires PHP: 5.4\r Stable tag: 2.0.2\r License: GPLv3\r License URI: https://opensource.org/licenses/GPL-3.0",
"scripts": {
"build": "wp-scripts build",
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: post schedule, schedule calendar, auto scheduler, auto sharing, social sha
Requires at least: 4.0
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 5.1.2
Stable tag: 5.1.3
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -208,6 +208,11 @@ No, SchedulePress doesn’t require any additional plugin. All you have to do is

== Changelog ==

= 5.1.3 - 2024-07-07 =
- Improved: Twitter Social Share
- Improved: Facebook Page conneting authentication process.
- Few minor bug fixes & improvements.

= 5.1.2 - 2024-06-10 =
- Improved: Allowed Post type for Elementor.
- Few minor bug fixes & improvements.
Expand Down
4 changes: 2 additions & 2 deletions wp-scheduled-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Plugin Name: SchedulePress
* Description: Automate your content workflow with SchedulePress. Take a quick glance at your content planning with Schedule Calendar, Dashboard widget & Sitewide admin bar. Instantly share your posts on social media platforms such as Facebook, Twitter & many more.
* Version: 5.1.2
* Version: 5.1.3
* Author: WPDeveloper
* Author URI: https://wpdeveloper.com
* Text Domain: wp-scheduled-posts
Expand Down Expand Up @@ -75,7 +75,7 @@ public function define_constants()
/**
* Defines CONSTANTS for Whole plugins.
*/
define('WPSP_VERSION', '5.1.2');
define('WPSP_VERSION', '5.1.3');
define('WPSP_SETTINGS_NAME_OLD', 'wpsp_settings');
define('WPSP_SETTINGS_NAME', 'wpsp_settings_v5');
define('WPSP_PLUGIN_FILE', __FILE__);
Expand Down

0 comments on commit 2c3023b

Please sign in to comment.