We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63d1c3d commit 33a6b16Copy full SHA for 33a6b16
src/wpephpcompat.php
@@ -207,7 +207,11 @@ public function start_test() {
207
$scan_results .= __( 'Name', 'php-compatibility-checker' ) . ': ' . $directory->post_title . "\n\n";
208
209
// Keep track of the number of times we've attempted to scan the plugin.
210
- $count = get_post_meta( $directory->ID, 'count', true ) ?: 1;
+ $count = (int) get_post_meta( $directory->ID, 'count', true );
211
+ if ( ! $count ) {
212
+ $count = 1;
213
+ }
214
+
215
$this->debug_log( 'Attempted scan count: ' . $count );
216
217
if ( $count > 2 ) { // If we've already tried twice, skip it.
0 commit comments