Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix-#v-2.1.11 #80

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Fix-#v-2.1.11 #80

merged 2 commits into from
Apr 3, 2024

Conversation

gaminikhil
Copy link
Collaborator

@gaminikhil gaminikhil commented Apr 3, 2024

Fix #v-2.1.11 version change PR.
Dismissing Notices - Implementing nonce check as well as permission/role based on this security report: This Patchstack report
Added the user to be logged in and permission check and nonce before the action can be executed.

 Fix-#v-2.1.11 version change PR.
@gaminikhil gaminikhil added this to the Next Release milestone Apr 3, 2024
@gaminikhil gaminikhil self-assigned this Apr 3, 2024
@tyche-bot
Copy link
Collaborator

tyche-bot commented Apr 3, 2024

2 Warnings
⚠️ Please use more than one word.
5c7a7af
⚠️ Please use more than one word.
9f4cbfe

Generated by 🚫 Danger

Copy link
Collaborator

@tyche-bot tyche-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code analysis identified issues

Tyche Softwares has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.

phpcs scanning turned up:

🚫 4 errors


Powered by Tyche Softwares

return;
if ( is_user_logged_in() && current_user_can( 'manage_options' ) && wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
update_option( self::$plugin_prefix . '_allow_tracking', 'dismissed' );
Shortcodes_TS_Tracker::ts_send_tracking_data( false );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).

if ( is_user_logged_in() && current_user_can( 'manage_options' ) && wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
update_option( self::$plugin_prefix . '_allow_tracking', 'dismissed' );
Shortcodes_TS_Tracker::ts_send_tracking_data( false );
die();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).

plugin.php Outdated
@@ -27,7 +27,7 @@ class Arconix_Shortcodes {
* @access private
* @var string $version Current plugin version
*/
const VERSION = '2.1.10';
const VERSION = '2.1.11';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).

plugin.php Outdated
@@ -27,7 +27,7 @@
* @access private
* @var string $version Current plugin version
*/
const VERSION = '2.1.10';
const VERSION = '2.1.11';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine).

 Fix-#v-2.1.11 fix phpcs errors.
Copy link
Collaborator

@tyche-bot tyche-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code analysis identified issues

Tyche Softwares has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.

phpcs scanning turned up:

🚫 1 error


Powered by Tyche Softwares

@@ -27,7 +27,7 @@ class Arconix_Shortcodes {
* @access private
* @var string $version Current plugin version
*/
const VERSION = '2.1.10';
const VERSION = '2.1.11';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).

@tyche-bot tyche-bot dismissed their stale review April 3, 2024 11:52

Dismissing review as all inline comments are obsolete by now

@rashmimalpande rashmimalpande merged commit bf017f2 into master Apr 3, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants