Skip to content

Commit

Permalink
version 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Oct 14, 2024
1 parent a6f8200 commit 0487e1b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file, formatted via [this recommendation](http://keepachangelog.com/).

### [3.0.3]
#### Changed
* Bumped the "Tested To" number to WP 6.6
* Updated text of the plugin notice

### [3.0.2]
#### Added
* Added `pre_display_posts_shortcode_output` filter before shortcode runs, used for transient caching, see #210
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# [Display Posts](https://displayposts.com) #

![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)

**Contributors:** billerickson
**Tags:** shortcode, pages, posts, page, query, display, list
**Requires at least:** 3.0
**Tested up to:** 6.0
**Stable tag:** 3.0.2
**Tested up to:** 6.6
**Stable tag:** 3.0.3
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
22 changes: 9 additions & 13 deletions display-posts-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Display Posts
* Plugin URI: https://displayposts.com
* Description: Display a listing of posts using the [display-posts] shortcode
* Version: 3.0.2
* Version: 3.0.3
* Author: Bill Erickson
* Author URI: https://www.billerickson.net
*
Expand All @@ -15,7 +15,7 @@
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @package Display Posts
* @version 3.0.2
* @version 3.0.3
* @author Bill Erickson <[email protected]>
* @copyright Copyright (c) 2011, Bill Erickson
* @link https://displayposts.com
Expand Down Expand Up @@ -833,7 +833,7 @@ function be_dps_survey_admin_notice() {
return;
}

$survey = get_option( 'display_posts_survey' );
$survey = get_option( 'display_posts_survey_2' );
$time = time();
$load = false;

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

?>
<div class="notice notice-info is-dismissible display-posts-survey-notice">
<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>
<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>
<p><strong><?php echo wp_kses( __( '~ Bill Erickson<br>Developer of Display Posts', 'display-posts' ), array( 'br' => array() ) ); ?></strong></p>
<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>
<p>
<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>
<a href="#" class="display-posts-dismiss-survey-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Nope, maybe later', 'display-posts' ); ?></a><br>
<a href="#" class="display-posts-dismiss-survey-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'I already did', 'display-posts' ); ?></a>
<a href="#" class="display-posts-dismiss-survey-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Dismiss', 'display-posts' ); ?></a>
</p>
</div>
<script type="text/javascript">
Expand All @@ -881,16 +877,16 @@ function be_dps_survey_admin_notice() {
</script>
<?php
}
//add_action( 'admin_notices', 'be_dps_survey_admin_notice' );
add_action( 'admin_notices', 'be_dps_survey_admin_notice' );

/**
* Dismiss the admin notice.
*/
function be_dps_survey_dismiss() {

$survey = get_option( 'display_posts_survey', array() );
$survey = get_option( 'display_posts_survey_2', array() );
$survey['time'] = time();
$survey['dismissed'] = true;
update_option( 'display_posts_survey', $survey );
update_option( 'display_posts_survey_2', $survey );
}
add_action( 'wp_ajax_display_posts_survey_dismiss', 'be_dps_survey_dismiss' );
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: billerickson
Tags: shortcode, pages, posts, page, query, display, list
Requires at least: 3.0
Tested up to: 6.0
Stable tag: 3.0.2
Tested up to: 6.6
Stable tag: 3.0.3

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

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

== Changelog ==

**Version 3.0.3**
* Bumped the "Tested To" number to WP 6.6
* Updated text of the plugin notice

**Version 3.0.2**
* 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)
* Updated plugin to pass coding standards, see [#214](https://github.com/billerickson/display-posts-shortcode/issues/214)
Expand Down

0 comments on commit 0487e1b

Please sign in to comment.