Skip to content

Commit 0487e1b

Browse files
committed
version 3.0.3
1 parent a6f8200 commit 0487e1b

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22
All notable changes to this project will be documented in this file, formatted via [this recommendation](http://keepachangelog.com/).
33

4+
### [3.0.3]
5+
#### Changed
6+
* Bumped the "Tested To" number to WP 6.6
7+
* Updated text of the plugin notice
8+
49
### [3.0.2]
510
#### Added
611
* Added `pre_display_posts_shortcode_output` filter before shortcode runs, used for transient caching, see #210

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# [Display Posts](https://displayposts.com) #
22

3-
![Plugin Version](https://img.shields.io/wordpress/plugin/v/display-posts-shortcode.svg?style=flat-square) ![Total Downloads](https://img.shields.io/wordpress/plugin/dt/display-posts-shortcode.svg?style=flat-square) ![Plugin Rating](https://img.shields.io/wordpress/plugin/r/display-posts-shortcode.svg?style=flat-square) ![WordPress Compatibility](https://img.shields.io/wordpress/v/display-posts-shortcode.svg?style=flat-square) ![License](https://img.shields.io/badge/license-GPL--2.0%2B-red.svg?style=flat-square)
4-
53
**Contributors:** billerickson
64
**Tags:** shortcode, pages, posts, page, query, display, list
75
**Requires at least:** 3.0
8-
**Tested up to:** 6.0
9-
**Stable tag:** 3.0.2
6+
**Tested up to:** 6.6
7+
**Stable tag:** 3.0.3
108
**License:** GPLv2 or later
119
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1210

display-posts-shortcode.php

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Display Posts
44
* Plugin URI: https://displayposts.com
55
* Description: Display a listing of posts using the [display-posts] shortcode
6-
* Version: 3.0.2
6+
* Version: 3.0.3
77
* Author: Bill Erickson
88
* Author URI: https://www.billerickson.net
99
*
@@ -15,7 +15,7 @@
1515
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1616
*
1717
* @package Display Posts
18-
* @version 3.0.2
18+
* @version 3.0.3
1919
* @author Bill Erickson <[email protected]>
2020
* @copyright Copyright (c) 2011, Bill Erickson
2121
* @link https://displayposts.com
@@ -833,7 +833,7 @@ function be_dps_survey_admin_notice() {
833833
return;
834834
}
835835

836-
$survey = get_option( 'display_posts_survey' );
836+
$survey = get_option( 'display_posts_survey_2' );
837837
$time = time();
838838
$load = false;
839839

@@ -842,7 +842,7 @@ function be_dps_survey_admin_notice() {
842842
'time' => $time,
843843
'dismissed' => false,
844844
);
845-
update_option( 'display_posts_survey', $survey );
845+
update_option( 'display_posts_survey_2', $survey );
846846
} else {
847847
// Check if it has been dismissed or not.
848848
if ( ( isset( $survey['dismissed'] ) && ! $survey['dismissed'] ) ) {
@@ -857,13 +857,9 @@ function be_dps_survey_admin_notice() {
857857

858858
?>
859859
<div class="notice notice-info is-dismissible display-posts-survey-notice">
860-
<p><?php esc_html_e( 'Thank you so much for using Display Posts! Could you please do me a BIG favor and answer four quick questions on how I can improve the plugin for you?', 'display-posts' ); ?></p>
861-
<p><?php esc_html_e( 'In 2019 I\'ll be working on new features, including the possibility of a premium version. As a valued Display Posts user, your feedback is important and appreciated!', 'display-posts' ); ?></p>
862-
<p><strong><?php echo wp_kses( __( '~ Bill Erickson<br>Developer of Display Posts', 'display-posts' ), array( 'br' => array() ) ); ?></strong></p>
860+
<p><?php printf( '<strong>Action Required:</strong> Display Posts needs a one-time manual update to continue receiving updates. <a href="%s" target="_blank">More Information</a>', esc_url('https://displayposts.com/install/' ) ); ?></p>
863861
<p>
864-
<a href="https://displayposts.com/user-survey?utm_source=displaypostsplugin&utm_medium=link&utm_campaign=survey_notice" class="display-posts-dismiss-survey-notice display-posts-survey-out" target="_blank" rel="noopener"><?php esc_html_e( 'Yes, I will!', 'display-posts' ); ?></a><br>
865-
<a href="#" class="display-posts-dismiss-survey-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Nope, maybe later', 'display-posts' ); ?></a><br>
866-
<a href="#" class="display-posts-dismiss-survey-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'I already did', 'display-posts' ); ?></a>
862+
<a href="#" class="display-posts-dismiss-survey-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Dismiss', 'display-posts' ); ?></a>
867863
</p>
868864
</div>
869865
<script type="text/javascript">
@@ -881,16 +877,16 @@ function be_dps_survey_admin_notice() {
881877
</script>
882878
<?php
883879
}
884-
//add_action( 'admin_notices', 'be_dps_survey_admin_notice' );
880+
add_action( 'admin_notices', 'be_dps_survey_admin_notice' );
885881

886882
/**
887883
* Dismiss the admin notice.
888884
*/
889885
function be_dps_survey_dismiss() {
890886

891-
$survey = get_option( 'display_posts_survey', array() );
887+
$survey = get_option( 'display_posts_survey_2', array() );
892888
$survey['time'] = time();
893889
$survey['dismissed'] = true;
894-
update_option( 'display_posts_survey', $survey );
890+
update_option( 'display_posts_survey_2', $survey );
895891
}
896892
add_action( 'wp_ajax_display_posts_survey_dismiss', 'be_dps_survey_dismiss' );

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: billerickson
33
Tags: shortcode, pages, posts, page, query, display, list
44
Requires at least: 3.0
5-
Tested up to: 6.0
6-
Stable tag: 3.0.2
5+
Tested up to: 6.6
6+
Stable tag: 3.0.3
77

88
Add a listing of content on your website using a simple shortcode. Filter the results by category, author, and more.
99

@@ -78,6 +78,10 @@ Here are [tutorials for popular event calendar plugins](https://displayposts.com
7878

7979
== Changelog ==
8080

81+
**Version 3.0.3**
82+
* Bumped the "Tested To" number to WP 6.6
83+
* Updated text of the plugin notice
84+
8185
**Version 3.0.2**
8286
* Added `pre_display_posts_shortcode_output` filter before shortcode runs, used for transient caching, see [#210](https://github.com/billerickson/display-posts-shortcode/issues/214)
8387
* Updated plugin to pass coding standards, see [#214](https://github.com/billerickson/display-posts-shortcode/issues/214)

0 commit comments

Comments
 (0)