File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 109109 <!-- Enforce short array syntax -->
110110 <rule ref =" Generic.Arrays.DisallowLongArraySyntax" />
111111
112+ <!-- These formatting rules are suppressed in VIP-GO and restored here.-->
113+ <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" >
114+ <severity >5</severity >
115+ </rule >
116+ <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" >
117+ <severity >5</severity >
118+ </rule >
119+ <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace.EndLine" >
120+ <severity >5</severity >
121+ </rule >
112122</ruleset >
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ public function admin_init() {
4646 public function untrashed_post_cb ( $ post_id , $ previous_status ) {
4747 // If have errors when validating the post content/data, do not show those in the admin when untrash.
4848 $ untrashed_post = get_post ( $ post_id );
49-
49+
5050 // Bail if the untrashed post is not a GraphQL Document
5151 if ( ! isset ( $ untrashed_post ->post_type ) || Document::TYPE_NAME !== $ untrashed_post ->post_type ) {
5252 return ;
5353 }
54-
54+
5555 delete_transient ( AdminErrors::TRANSIENT_NAME );
5656 }
5757
You can’t perform that action at this time.
0 commit comments