Skip to content

Commit

Permalink
Merge pull request #1394 from xwp/release/3.9.2
Browse files Browse the repository at this point in the history
Release 3.9.2
  • Loading branch information
kasparsd authored Jan 10, 2023
2 parents 1c1880b + 48d0754 commit eb08c13
Show file tree
Hide file tree
Showing 10 changed files with 4,070 additions and 2,334 deletions.
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/1-FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "\U0001F195 Feature Request"
about: "I have a suggestion for missing functionality or improvements"
title: ''
labels: 'i: enhancement'
assignees: ''

---

# Feature Request

Describe the suggested feature and how it's beneficial to Stream users.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Delete the section that is not applicable:

# Feature Request

Describe the suggested feature and how it's beneficial to Stream users.
---
name: "\U0001F41B Bug Report"
about: "Something isn't working as expected"
title: ''
labels: 'i: bug'
assignees: ''

---

# Bug Report

Expand All @@ -18,9 +20,7 @@ Describe what actually happens.
## Steps to Reproduce the Problem

1.

2.

3.

## Screenshots
Expand Down
File renamed without changes.
14 changes: 14 additions & 0 deletions classes/class-alerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ public function change_menu_link_url() {
* @return void
*/
public function display_notification_box( $post = array() ) {
$alert = null;
$alert_type = 'none';
if ( is_object( $post ) ) {
$alert = $this->get_alert( $post->ID );
Expand Down Expand Up @@ -732,6 +733,13 @@ public function get_actions() {
*/
public function save_new_alert() {
check_ajax_referer( 'save_alert', 'wp_stream_alerts_nonce' );

if ( ! current_user_can( $this->plugin->admin->settings_cap ) ) {
wp_die(
esc_html__( "You don't have sufficient privileges to do this action.", 'stream' )
);
}

$trigger_author = wp_stream_filter_input( INPUT_POST, 'wp_stream_trigger_author' );
$trigger_connector_and_context = wp_stream_filter_input( INPUT_POST, 'wp_stream_trigger_context' );
if ( false !== strpos( $trigger_connector_and_context, '-' ) ) {
Expand Down Expand Up @@ -799,6 +807,12 @@ public function save_new_alert() {
* Return HTML string of the Alert page controls.
*/
public function get_new_alert_triggers_notifications() {
if ( ! current_user_can( $this->plugin->admin->settings_cap ) ) {
wp_die(
esc_html__( "You don't have sufficient privileges to do this action.", 'stream' )
);
}

ob_start();
?>
<fieldset class="inline-edit-col inline-edit-wp_stream_alerts inline-edit-add-new-triggers">
Expand Down
2 changes: 1 addition & 1 deletion classes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Plugin {
*
* @const string
*/
const VERSION = '3.9.1';
const VERSION = '3.9.2';

/**
* WP-CLI command
Expand Down
Loading

0 comments on commit eb08c13

Please sign in to comment.