Skip to content

Commit

Permalink
Use the latest version of code-quality tools & make sure phpcs can be…
Browse files Browse the repository at this point in the history
… run by gh actions (#8)
  • Loading branch information
carstingaxion committed Sep 14, 2023
2 parents 843c49b + 6317035 commit 95ee889
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<ruleset name="install.php">
<description>Coding standards for install.php</description>
<!--
<file>.</file> -->

<file>.</file>

<!--
<exclude-pattern>*/bin/*</exclude-pattern>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"koodimonni/composer-dropin-installer": ">=1.0.1"
},
"require-dev": {
"figuren-theater/code-quality": "^0.5.0"
"figuren-theater/code-quality": "*"
},
"config": {
"allow-plugins": {
Expand Down
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function wp_install_defaults( int $user_id ) :void {
$wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s", $user_id, $table_prefix . 'capabilities' ) );

// Delete any caps that snuck into the previously active blog. (Hardcoded to blog 1 for now.)
// TODO: Get previous_blog_id.
// TODO: ??? Get previous_blog_id.
if ( ! is_super_admin( $user_id ) && 1 !== $user_id ) {
$wpdb->delete(
$wpdb->usermeta,
Expand Down

0 comments on commit 95ee889

Please sign in to comment.