-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Pods 3.2.8 #7347
base: main
Are you sure you want to change the base?
Pods 3.2.8 #7347
Conversation
PR Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
phpcs
[phpcs] reported by reviewdog 🐶PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
Public method name "Base::should_autop" is not in camel caps format
pods/src/Pods/Blocks/Types/Base.php
Line 284 in 8b99c43
public function should_autop( $content, array $attributes = [] ): bool { |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionDeclaration.BraceOnSameLine
Opening brace should be on a new line
pods/src/Pods/Blocks/Types/Base.php
Line 284 in 8b99c43
public function should_autop( $content, array $attributes = [] ): bool { |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 285 in 8b99c43
$should_autop = ( |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 286 in 8b99c43
is_string( $content ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 287 in 8b99c43
&& false === strpos( $content, '<div' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 288 in 8b99c43
&& false === strpos( $content, '<ul' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 289 in 8b99c43
&& false === strpos( $content, '<ol' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 290 in 8b99c43
&& false === strpos( $content, '<h' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 291 in 8b99c43
&& false === strpos( $content, '<p' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 292 in 8b99c43
); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 294 in 8b99c43
/** |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 295 in 8b99c43
* Allow filtering whether to apply wpautop to the block content output. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 296 in 8b99c43
* |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 297 in 8b99c43
* This is used for things like Field block render or List block render of the no items found message. |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 110 characters
pods/src/Pods/Blocks/Types/Base.php
Line 297 in 8b99c43
* This is used for things like Field block render or List block render of the no items found message. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 298 in 8b99c43
* |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 299 in 8b99c43
* @since TBD |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 300 in 8b99c43
* |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 301 in 8b99c43
* @param bool $should_autop Whether to apply wpautop to the block content output. |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 98 characters
pods/src/Pods/Blocks/Types/Base.php
Line 301 in 8b99c43
* @param bool $should_autop Whether to apply wpautop to the block content output. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 302 in 8b99c43
* @param string|mixed $content The content to determine whether to autop. |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 87 characters
pods/src/Pods/Blocks/Types/Base.php
Line 302 in 8b99c43
* @param string|mixed $content The content to determine whether to autop. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 303 in 8b99c43
* @param array $attributes The Pods render attributes that will be used. |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 90 characters
pods/src/Pods/Blocks/Types/Base.php
Line 303 in 8b99c43
* @param array $attributes The Pods render attributes that will be used. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 304 in 8b99c43
*/ |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 305 in 8b99c43
return (bool) apply_filters( 'pods_blocks_should_autop', $should_autop, $content, $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 104 characters
pods/src/Pods/Blocks/Types/Base.php
Line 305 in 8b99c43
return (bool) apply_filters( 'pods_blocks_should_autop', $should_autop, $content, $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 306 in 8b99c43
} |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Field.php
Line 215 in 8b99c43
if ( $this->should_autop( $content, $attributes ) ) { |
[phpcs] reported by reviewdog 🐶PEAR.ControlStructures.MultiLineCondition.SpacingAfterOpenBrace
First condition of a multi-line IF statement must directly follow the opening parenthesis
pods/src/Pods/Blocks/Types/Field.php
Line 215 in 8b99c43
if ( $this->should_autop( $content, $attributes ) ) { |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Item_List.php
Line 429 in 8b99c43
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶PEAR.ControlStructures.MultiLineCondition.SpacingAfterOpenBrace
First condition of a multi-line IF statement must directly follow the opening parenthesis
pods/src/Pods/Blocks/Types/Item_List.php
Line 429 in 8b99c43
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 103 characters
pods/src/Pods/Blocks/Types/Item_List.php
Line 429 in 8b99c43
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Item_List.php
Line 430 in 8b99c43
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 88 characters
pods/src/Pods/Blocks/Types/Item_List.php
Line 430 in 8b99c43
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Item_List.php
Line 431 in 8b99c43
} |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶PEAR.ControlStructures.MultiLineCondition.SpacingAfterOpenBrace
First condition of a multi-line IF statement must directly follow the opening parenthesis
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 103 characters
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.TooLong
Line exceeds 85 characters; contains 88 characters
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
phpcs
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 285 in 6dee8cc
$should_autop = ( |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 286 in 6dee8cc
is_string( $content ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 287 in 6dee8cc
&& false === strpos( $content, '<div' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 288 in 6dee8cc
&& false === strpos( $content, '<ul' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 289 in 6dee8cc
&& false === strpos( $content, '<ol' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 290 in 6dee8cc
&& false === strpos( $content, '<h' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 291 in 6dee8cc
&& false === strpos( $content, '<p' ) |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 292 in 6dee8cc
); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 294 in 6dee8cc
/** |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 295 in 6dee8cc
* Allow filtering whether to apply wpautop to the block content output. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 296 in 6dee8cc
* |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 297 in 6dee8cc
* This is used for things like Field block render or List block render of the no items found message. |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.MaxExceeded
Line exceeds maximum limit of 100 characters; contains 110 characters
pods/src/Pods/Blocks/Types/Base.php
Line 297 in 6dee8cc
* This is used for things like Field block render or List block render of the no items found message. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 298 in 6dee8cc
* |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 299 in 6dee8cc
* @since TBD |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 300 in 6dee8cc
* |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 301 in 6dee8cc
* @param bool $should_autop Whether to apply wpautop to the block content output. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 302 in 6dee8cc
* @param string|mixed $content The content to determine whether to autop. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 303 in 6dee8cc
* @param array $attributes The Pods render attributes that will be used. |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 304 in 6dee8cc
*/ |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 305 in 6dee8cc
return (bool) apply_filters( 'pods_blocks_should_autop', $should_autop, $content, $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.Formatting.NoSpaceAfterCast.SpaceFound
A cast statement must not be followed by a space
pods/src/Pods/Blocks/Types/Base.php
Line 305 in 6dee8cc
return (bool) apply_filters( 'pods_blocks_should_autop', $should_autop, $content, $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.MaxExceeded
Line exceeds maximum limit of 100 characters; contains 104 characters
pods/src/Pods/Blocks/Types/Base.php
Line 305 in 6dee8cc
return (bool) apply_filters( 'pods_blocks_should_autop', $should_autop, $content, $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Base.php
Line 306 in 6dee8cc
} |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Field.php
Line 215 in 6dee8cc
if ( $this->should_autop( $content, $attributes ) ) { |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Item_List.php
Line 429 in 6dee8cc
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.MaxExceeded
Line exceeds maximum limit of 100 characters; contains 103 characters
pods/src/Pods/Blocks/Types/Item_List.php
Line 429 in 6dee8cc
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Item_List.php
Line 430 in 6dee8cc
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
pods/src/Pods/Blocks/Types/Item_List.php
Line 431 in 6dee8cc
} |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.Files.LineLength.MaxExceeded
Line exceeds maximum limit of 100 characters; contains 103 characters
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowTabIndent.TabsUsed
Spaces must be used to indent lines; tabs are not allowed
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
phpcs
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
Space after opening parenthesis of function call prohibited
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
Expected 0 spaces before closing parenthesis; 1 found
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
Space after opening parenthesis of function call prohibited
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
Expected 0 spaces before closing parenthesis; 1 found
if ( ! empty( $attributes['not_found'] ) && $this->should_autop( $attributes['not_found'] ) ) { |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
Space after opening parenthesis of function call prohibited
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
Expected 0 spaces before closing parenthesis; 1 found
$attributes['not_found'] = wpautop( $attributes['not_found'], $attributes ); |
<?php echo( $submit_from_linked ? 'class="hidden"' : '' ); ?>> | ||
<h2 class="pods-wizard-one-click-actions-heading"><?php esc_html_e( 'One-Click Extend', 'pods' ); ?></h2> | ||
<ul class="pods-wizard-one-click-actions"> | ||
<?php foreach ( $quick_actions as $quick_action_key => $quick_action ) : ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$quick_action_key".
<?php echo( $submit_from_linked ? 'class="hidden"' : '' ); ?>> | ||
<h2 class="pods-wizard-one-click-actions-heading"><?php esc_html_e( 'One-Click Extend', 'pods' ); ?></h2> | ||
<ul class="pods-wizard-one-click-actions"> | ||
<?php foreach ( $quick_actions as $quick_action_key => $quick_action ) : ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$quick_action".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
phpcs
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'pods_v'.
pods/components/Roles/ui/add.php
Line 41 in 6ccfcd8
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 41 in 6ccfcd8
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 41 in 6ccfcd8
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 41 in 6ccfcd8
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'PodsForm'.
pods/components/Roles/ui/add.php
Line 50 in 6ccfcd8
echo PodsForm::field( 'role_name', pods_v( 'role_name', 'post' ), 'slug', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket
Opening parenthesis of a multi-line function call must be the last content on the line
pods/components/Roles/ui/add.php
Line 50 in 6ccfcd8
echo PodsForm::field( 'role_name', pods_v( 'role_name', 'post' ), 'slug', [ |
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'pods_v'.
pods/components/Roles/ui/add.php
Line 50 in 6ccfcd8
echo PodsForm::field( 'role_name', pods_v( 'role_name', 'post' ), 'slug', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 50 in 6ccfcd8
echo PodsForm::field( 'role_name', pods_v( 'role_name', 'post' ), 'slug', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 50 in 6ccfcd8
echo PodsForm::field( 'role_name', pods_v( 'role_name', 'post' ), 'slug', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 50 in 6ccfcd8
echo PodsForm::field( 'role_name', pods_v( 'role_name', 'post' ), 'slug', [ |
[phpcs] reported by reviewdog 🐶Squiz.PHP.EmbeddedPhp.ContentAfterOpen
Opening PHP tag must be on a line by itself
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'PodsForm'.
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket
Opening parenthesis of a multi-line function call must be the last content on the line
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$capability'.
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'pods_v'.
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
pods/components/Roles/ui/add.php
Line 91 in 6ccfcd8
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
[phpcs] reported by reviewdog 🐶StellarWP.XSS.EscapeOutput.OutputNotEscaped
Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '$obj'
pods/components/Roles/ui/edit.php
Line 24 in 6ccfcd8
echo $obj->message( wp_kses_post( $message ) ); |
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$obj'.
pods/components/Roles/ui/edit.php
Line 24 in 6ccfcd8
echo $obj->message( wp_kses_post( $message ) ); |
[phpcs] reported by reviewdog 🐶WordPressVIPMinimum.Security.ProperEscapingFunction.htmlAttrNotByEscHTML
Wrong escaping function. HTML attributes should be escaped by esc_attr()
, not by esc_html_e()
.
pods/components/Roles/ui/edit.php
Line 46 in 6ccfcd8
<input type="submit" name="publish" id="publish" class="button-primary" value="<?php esc_html_e( 'Save', 'pods' ); ?>" accesskey="p" /> |
[phpcs] reported by reviewdog 🐶Squiz.Strings.EchoedStrings.HasBracket
Echoed strings should not be bracketed
Line 147 in 6ccfcd8
<div class="pods-wizard-option<?php echo ( ! empty( $quick_actions ) ? ' pods-wizard-option-with-secondary' : '' ); ?>"> |
[phpcs] reported by reviewdog 🐶StellarWP.XSS.EscapeOutput.OutputNotEscaped
Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '!'
Line 147 in 6ccfcd8
<div class="pods-wizard-option<?php echo ( ! empty( $quick_actions ) ? ' pods-wizard-option-with-secondary' : '' ); ?>"> |
[phpcs] reported by reviewdog 🐶Squiz.PHP.DisallowInlineIf.Found
Inline IF statements are not allowed
Line 147 in 6ccfcd8
<div class="pods-wizard-option<?php echo ( ! empty( $quick_actions ) ? ' pods-wizard-option-with-secondary' : '' ); ?>"> |
[phpcs] reported by reviewdog 🐶Squiz.Strings.EchoedStrings.HasBracket
Echoed strings should not be bracketed
Line 158 in 6ccfcd8
<?php echo ( $submit_from_linked ? 'class="hidden"' : '' ); ?>> |
[phpcs] reported by reviewdog 🐶StellarWP.XSS.EscapeOutput.OutputNotEscaped
Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '$submit_from_linked'
Line 158 in 6ccfcd8
<?php echo ( $submit_from_linked ? 'class="hidden"' : '' ); ?>> |
[phpcs] reported by reviewdog 🐶Squiz.PHP.DisallowInlineIf.Found
Inline IF statements are not allowed
Line 158 in 6ccfcd8
<?php echo ( $submit_from_linked ? 'class="hidden"' : '' ); ?>> |
<ul> | ||
<?php | ||
foreach ( $post_types as $post_type ) { | ||
$post_type_name = pods_var_raw( 'name', $post_type ); | ||
$post_type_label = pods_var_raw( 'label', $post_type, ucwords( str_replace( '_', ' ', $post_type_name ) ) ); | ||
$post_type_name = pods_v( 'name', $post_type ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$post_type_name".
$post_type_name = pods_var_raw( 'name', $post_type ); | ||
$post_type_label = pods_var_raw( 'label', $post_type, ucwords( str_replace( '_', ' ', $post_type_name ) ) ); | ||
$post_type_name = pods_v( 'name', $post_type ); | ||
$post_type_label = pods_v( 'label', $post_type, ucwords( str_replace( '_', ' ', $post_type_name ) ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$post_type_label".
?> | ||
<li> | ||
<div class="pods-field pods-boolean"> | ||
<?php | ||
echo PodsForm::field( 'post_type[' . $post_type_name . ']', pods_var_raw( 'post_type[' . $post_type_name . ']', 'post', true ), 'boolean', [ | ||
echo PodsForm::field( 'post_type[' . $post_type_name . ']', pods_v( 'post_type[' . $post_type_name . ']', 'post', true ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'PodsForm'.
?> | ||
<li> | ||
<div class="pods-field pods-boolean"> | ||
<?php | ||
echo PodsForm::field( 'post_type[' . $post_type_name . ']', pods_var_raw( 'post_type[' . $post_type_name . ']', 'post', true ), 'boolean', [ | ||
echo PodsForm::field( 'post_type[' . $post_type_name . ']', pods_v( 'post_type[' . $post_type_name . ']', 'post', true ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket
Opening parenthesis of a multi-line function call must be the last content on the line
?> | ||
<li> | ||
<div class="pods-field pods-boolean"> | ||
<?php | ||
echo PodsForm::field( 'post_type[' . $post_type_name . ']', pods_var_raw( 'post_type[' . $post_type_name . ']', 'post', true ), 'boolean', [ | ||
echo PodsForm::field( 'post_type[' . $post_type_name . ']', pods_v( 'post_type[' . $post_type_name . ']', 'post', true ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$post_type_name'.
?> | ||
<li> | ||
<?php | ||
echo PodsForm::field( 'taxonomy[' . $taxonomy_name . ']', pods_var_raw( 'taxonomy[' . $taxonomy_name . ']', 'post', true ), 'boolean', [ | ||
echo PodsForm::field( 'taxonomy[' . $taxonomy_name . ']', pods_v( 'taxonomy[' . $taxonomy_name . ']', 'post', true ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
@@ -321,9 +325,9 @@ | |||
|
|||
$capabilities = $this->get_capabilities(); | |||
|
|||
$params->capabilities = (array) pods_var_raw( 'capabilities', $params, array() ); | |||
$params->capabilities = (array) pods_v( 'capabilities', $params, array() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶Generic.Arrays.DisallowLongArraySyntax.Found
Short array syntax must be used to define arrays
|
||
$params->custom_capabilities = (array) pods_var_raw( 'custom_capabilities', $params, array() ); | ||
$params->custom_capabilities = (array) pods_v( 'custom_capabilities', $params, array() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶Generic.Arrays.DisallowLongArraySyntax.Found
Short array syntax must be used to define arrays
echo PodsForm::field( 'role_label', pods_var_raw( 'role_label', 'post' ), 'text', [ | ||
'class' => 'pods-validate pods-validate-required', | ||
'disable_dfv' => true, | ||
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'PodsForm'.
echo PodsForm::field( 'role_label', pods_var_raw( 'role_label', 'post' ), 'text', [ | ||
'class' => 'pods-validate pods-validate-required', | ||
'disable_dfv' => true, | ||
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket
Opening parenthesis of a multi-line function call must be the last content on the line
echo PodsForm::field( 'role_label', pods_var_raw( 'role_label', 'post' ), 'text', [ | ||
'class' => 'pods-validate pods-validate-required', | ||
'disable_dfv' => true, | ||
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'pods_v'.
echo PodsForm::field( 'role_label', pods_var_raw( 'role_label', 'post' ), 'text', [ | ||
'class' => 'pods-validate pods-validate-required', | ||
'disable_dfv' => true, | ||
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
echo PodsForm::field( 'role_label', pods_var_raw( 'role_label', 'post' ), 'text', [ | ||
'class' => 'pods-validate pods-validate-required', | ||
'disable_dfv' => true, | ||
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
echo PodsForm::field( 'role_label', pods_var_raw( 'role_label', 'post' ), 'text', [ | ||
'class' => 'pods-validate pods-validate-required', | ||
'disable_dfv' => true, | ||
echo PodsForm::field( 'role_label', pods_v( 'role_label', 'post' ), 'text', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
'attributes' => [ 'data-sluggable' => 'role_label' ], | ||
'class' => 'pods-validate pods-validate-required pods-slugged-lower', | ||
'disable_dfv' => true, | ||
echo PodsForm::field( 'role_name', pods_v( 'role_name', 'post' ), 'slug', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'PodsForm'.
@@ -90,7 +88,7 @@ | |||
$zebra = ( ! $zebra ); | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
@@ -90,7 +88,7 @@ | |||
$zebra = ( ! $zebra ); | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
<?php echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
@@ -21,11 +21,11 @@ | |||
|
|||
$message = sprintf( __( '<strong>Success!</strong> %1$s %2$s successfully.', 'pods' ), $obj->item, $action ); | |||
|
|||
echo $obj->message( $message ); | |||
echo $obj->message( wp_kses_post( $message ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶StellarWP.XSS.EscapeOutput.OutputNotEscaped
Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '$obj'
@@ -21,11 +21,11 @@ | |||
|
|||
$message = sprintf( __( '<strong>Success!</strong> %1$s %2$s successfully.', 'pods' ), $obj->item, $action ); | |||
|
|||
echo $obj->message( $message ); | |||
echo $obj->message( wp_kses_post( $message ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$obj'.
|
||
<div class="inside"> | ||
<div class="submitbox" id="submitpost"> | ||
<div id="minor-publishing"> | ||
<div id="major-publishing-actions"> | ||
<div id="publishing-action"> | ||
<img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> | ||
<input type="submit" name="publish" id="publish" class="button-primary" value="<?php _e( 'Save', 'pods' ); ?>" accesskey="p" /> | ||
<input type="submit" name="publish" id="publish" class="button-primary" value="<?php esc_html_e( 'Save', 'pods' ); ?>" accesskey="p" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPressVIPMinimum.Security.ProperEscapingFunction.htmlAttrNotByEscHTML
Wrong escaping function. HTML attributes should be escaped by esc_attr()
, not by esc_html_e()
.
@@ -99,7 +99,7 @@ | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'PodsForm'.
@@ -99,7 +99,7 @@ | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket
Opening parenthesis of a multi-line function call must be the last content on the line
@@ -99,7 +99,7 @@ | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$capability'.
@@ -99,7 +99,7 @@ | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶WordPress.Security.EscapeOutput.OutputNotEscaped
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'pods_v'.
@@ -99,7 +99,7 @@ | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
@@ -99,7 +99,7 @@ | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
@@ -99,7 +99,7 @@ | |||
?> | |||
<li class="pods-zebra-<?php echo esc_attr( $class ); ?>" data-capability="<?php echo esc_attr( $capability ); ?>"> | |||
<?php | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_var_raw( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ | |||
echo PodsForm::field( 'capabilities[' . $capability . ']', pods_v( 'capabilities[' . $capability . ']', 'post', $checked ), 'boolean', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.MultipleArguments
Only one argument is allowed per line in a multi-line function call
</a> | ||
</div> | ||
|
||
<div class="pods-wizard-option"> | ||
<div class="pods-wizard-option<?php echo ! empty( $quick_actions ) ? ' pods-wizard-option-with-secondary' : ''; ?>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶Squiz.PHP.DisallowInlineIf.Found
Inline IF statements are not allowed
|
||
<?php if ( ! empty( $quick_actions ) ) : ?> | ||
<div id="pods-wizard-quick-actions" | ||
<?php echo $submit_from_linked ? 'class="hidden"' : ''; ?>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶Squiz.PHP.DisallowInlineIf.Found
Inline IF statements are not allowed
@@ -569,6 +567,14 @@ | |||
</div> | |||
</div> | |||
</div> | |||
|
|||
<div id="pods-wizard-quick-actions-saving-in-progress" | |||
<?php echo ! $submit_from_linked ? 'class="hidden"' : ''; ?>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpcs] reported by reviewdog 🐶Squiz.PHP.DisallowInlineIf.Found
Inline IF statements are not allowed
Automated changes by create-pull-request GitHub action