Skip to content

release v1.8.0#50

Merged
stklcode merged 22 commits into
stablefrom
develop
May 24, 2026
Merged

release v1.8.0#50
stklcode merged 22 commits into
stablefrom
develop

Conversation

@stklcode
Copy link
Copy Markdown
Owner

No description provided.

stklcode and others added 22 commits September 10, 2025 16:45
The function is available since WP 4.7, so we could have been using it
since v1.5. It defaults to the same logic but applies an additional
filter internally.
Statify will move to 5.1, so there is no reason to stick with WP 4.7
with the upcoming release.
The function is available since WP 4.8 and defaults to the same logic
but applies an additional filter internally.
Add PHPStan and WP stubs to our dev-dependencies and configure a CI
workflow to run the analysis.

We can start at level 3 without any additional code changes required.
Bumps [sonarsource/sonarqube-scan-action](https://github.com/sonarsource/sonarqube-scan-action) from 5 to 6.
- [Release notes](https://github.com/sonarsource/sonarqube-scan-action/releases)
- [Commits](SonarSource/sonarqube-scan-action@v5...v6)

---
updated-dependencies:
- dependency-name: sonarsource/sonarqube-scan-action
  dependency-version: '6'
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
get_sites() is guaranteed to be available on WP 5.1 and later and never
returns the legacy array of arrays structure. Drop the redundant checks.

We also do not require the fill site object, so let's just fetch IDs.
The function expects the subject parameter to be a string. Prevent
warnings and pass an empty string. We are only interested in catching
invalid expressions, so the actual subject does not matter and should
be as short as possible.
@stklcode stklcode added this to the 1.8.0 milestone May 24, 2026
@stklcode stklcode self-assigned this May 24, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
31.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@github-actions
Copy link
Copy Markdown

🔍 WordPress Plugin Check Report

⚠️ Status: Passed with warnings

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
6 0 6

⚠️ Warnings (6)

📁 inc/class-statifyblacklist-admin.php (6 warnings)
📍 Line 🔖 Check 💬 Message
167 WordPress.DB.DirectDatabaseQuery.DirectQuery Use of a direct database call is discouraged.
167 WordPress.DB.DirectDatabaseQuery.NoCaching Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
177 WordPress.DB.DirectDatabaseQuery.DirectQuery Use of a direct database call is discouraged.
177 WordPress.DB.DirectDatabaseQuery.NoCaching Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
189 WordPress.DB.DirectDatabaseQuery.DirectQuery Use of a direct database call is discouraged.
189 WordPress.DB.DirectDatabaseQuery.NoCaching Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@stklcode stklcode merged commit d6d6c2b into stable May 24, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants