Skip to content

Commit

Permalink
Merge pull request #222 from pluginever/release/2.0.3
Browse files Browse the repository at this point in the history
Prepare release v2.0.3
  • Loading branch information
kawsarahmedr authored Oct 27, 2024
2 parents 02ccdcb + 7564d5b commit e301d29
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 21 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "WP Content Pilot automatically posts contents from various sources based on the predefined keywords.",
"homepage": "https://pluginever.com/plugins/wp-content-pilot/",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"license": "GPL-2.0-or-later",
"prefer-stable": true,
"minimum-stability": "dev",
"repositories": [],
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions i18n/languages/wp-content-pilot.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the GPL v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: WP Content Pilot 2.0.2\n"
"Project-Id-Version: WP Content Pilot 2.0.3\n"
"Report-Msgid-Bugs-To: https://pluginever.com/support/\n"
"POT-Creation-Date: 2024-09-04 12:18:49+00:00\n"
"POT-Creation-Date: 2024-10-27 06:51:48+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -1766,28 +1766,36 @@ msgstr ""
msgid "Updating product price, regular price & sale price."
msgstr ""

#: includes/class-wpcp-notices.php:300
#: includes/class-wpcp-notices.php:301
msgid ""
"<b>WP Content Pilot</b> is powering <b>5000+ companies</b> in generating "
"automatic contents and affiliation with its <b>25+</b> types of campaign. "
"Upgrade to Pro now & get 10% discount using coupon "
"<strong>WPCPFREE2PRO</strong>"
msgstr ""

#: includes/class-wpcp-notices.php:319
#: includes/class-wpcp-notices.php:320
#. translators: 1. HTML anchor tag, 2. HTML anchor end tag
msgid ""
"The most wanted feature <b>article spinner</b> is now available with <b>WP "
"Content Pilot</b>. We have integrated spinrewriter support. If you do not "
"have account %1$ssignup now%2$s and configure in settings page."
msgstr ""

#: includes/class-wpcp-notices.php:336
#: includes/class-wpcp-notices.php:337
msgid ""
"Article search options will be changed in the next version of WP Content "
"Pilot. Bing search will be replaced with Google Custom Search."
msgstr ""

#: includes/class-wpcp-notices.php:357
#. translators: 1. HTML anchor tag, 2. HTML anchor end tag
msgid ""
"👻 Happy Halloween! Get 30% discount on all our plugins. Use coupon code "
"<strong>BIGTREAT30</strong> at checkout. Hurry, this deal won’t last long! "
"%1$sClaim your discount now!%2$s"
msgstr ""

#: includes/class-wpcp-readability.php:139
#. translators: URL.
msgid "Not readable [%s]"
Expand Down
33 changes: 29 additions & 4 deletions includes/class-wpcp-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ class WPCP_Admin_Notices {
* @since 1.0.0
*/
private static $predefined_notices = array(
'upgrade_notice' => 'upgrade_notice',
'article_notice' => 'article_notice',
'halloween_notice' => 'halloween_notice',
'upgrade_notice' => 'upgrade_notice',
'article_notice' => 'article_notice',
);

/**
Expand Down Expand Up @@ -153,17 +154,17 @@ public static function dismiss_notice() {
* @return void
*/
public static function output_notices() {

$saved_notices = get_option( 'wpcp_admin_notices', array() );
$dismissible_notices = get_option( 'wpcp_dismissible_notices', array() );
$notices = $saved_notices + $dismissible_notices + self::$notices;

// Output the notices.
if ( ! empty( $notices ) ) {

foreach ( $notices as $notice ) {

$notice_classes = array( 'wpcp_notice', 'notice', 'notice-' . $notice['type'] );
$dismiss_attr = $notice['dismiss_class'] ? 'data-dismiss_class="' . $notice['dismiss_class'] . '"' : '';
$dismiss_attr = $notice['dismiss_class'] ? 'data-dismiss_class=' . $notice['dismiss_class'] : '';

if ( $notice['dismiss_class'] ) {
$notice_classes[] = $notice['dismiss_class'];
Expand Down Expand Up @@ -342,6 +343,30 @@ public static function article_notice() {
)
);
}

/**
* Add 'halloween_notice' notice.
*
* @since 2.0.3
* @return void
*/
public static function halloween_notice() {
// Notice content.
$notice = sprintf(
/* translators: 1. HTML anchor tag, 2. HTML anchor end tag */
__( '👻 Happy Halloween! Get 30% discount on all our plugins. Use coupon code <strong>BIGTREAT30</strong> at checkout. Hurry, this deal won’t last long! %1$sClaim your discount now!%2$s', 'wp-content-pilot' ),
'<a href="https://pluginever.com/plugins/?utm_source=plugin&utm_medium=notice&utm_campaign=halloween-2024&discount=bigtreat30" target="_blank">',
'</a>',
);

self::add_dismissible_notice(
$notice,
array(
'type' => 'native notice-info',
'dismiss_class' => 'halloween_notice',
)
);
}
}

add_action( 'admin_init', array( 'WPCP_Admin_Notices', 'init' ), -1 );
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wp-content-pilot",
"title": "WP Content Pilot",
"version": "2.0.2",
"version": "2.0.3",
"description": "WP Content Pilot automatically posts contents from various sources based on the predefined keywords.",
"homepage": "https://pluginever.com",
"license": "GPL-v2.0-or-later",
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: pluginever,manikmist09
Tags: autoblog, rss aggregator, news aggregator, rss import, youtube feed, feed import, content curation, feed to post, rss to post, rss feeds, auto post
Requires at least: 5.0
Tested up to: 6.6
Stable tag: 2.0.2
Stable tag: 2.0.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -130,6 +130,10 @@ No, WP Content Pilot does not support multisite WordPress installation.
We would love to hear your suggestions! Feel free to open a new issue [here](https://github.com/pluginever/wp-content-pilot/issues) as the feature request.

== Changelog ==
= 2.0.3 (October 27, 2024) =
* Fix - Admin Notice dismissible issue fixed.
* Fix - Few known issues fixed.

= 2.0.2 (September 04, 2024) =
* Fix - Fix the issue with the Feed Campaign module.

Expand Down
4 changes: 2 additions & 2 deletions wp-content-pilot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Content Pilot
* Plugin URI: https://wpcontentpilot.com
* Description: WP Content Pilot automatically posts contents from various sources based on the predefined keywords.
* Version: 2.0.2
* Version: 2.0.3
* Requires at least: 5.0
* Requires PHP: 7.4
* Author: PluginEver
Expand Down Expand Up @@ -47,7 +47,7 @@ final class ContentPilot {
*
* @var string
*/
protected $version = '2.0.2';
protected $version = '2.0.3';

/**
* The single instance of the class.
Expand Down

0 comments on commit e301d29

Please sign in to comment.