PluginProbe
Plugin Detective – Troubleshooting Conflicts / 1.2.35
Plugin Detective – Troubleshooting Conflicts v1.2.35
1.2.35 1.2.33 1.2.32 1.2.31 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2 1.2.1 1.2.10 1.2.12 1.2.13 1.2.14 1.2.16 1.2.19 1.2.20 1.2.22 1.2.23 1.2.24 All 54 releases
← All changes | troubleshoot/includes/class-cases.php +4 -2 1.2.12 → 1.2.35 View file →
@@ -235,9 +235,10 @@
235 235 return $active_case;
236 236 }
237 237
238 238 if ( empty( $active_case ) ) {
239 - return new WP_Error( 'case_data_missing' , __( 'Case ID '.$active_case_id.' missing', 'plugin-detective' ) );
239 + /* translators: %s: case ID. */
240 + return new WP_Error( 'case_data_missing', sprintf( __( 'Case ID %s missing', 'plugin-detective' ), $active_case_id ) );
240 241 }
241 242
242 243 return $active_case;
243 244 }
@@ -248,9 +249,10 @@
248 249 }
249 250
250 251 $case = get_option( 'pdt_case_' . esc_attr( $args['id'] ) );
251 252 if ( empty( $case ) ) {
252 - return new WP_Error( 'case_data_missing' , __( 'Case ID '.$args['id'].' missing', 'plugin-detective' ) );
253 + /* translators: %s: case ID. */
254 + return new WP_Error( 'case_data_missing', sprintf( __( 'Case ID %s missing', 'plugin-detective' ), $args['id'] ) );
253 255 }
254 256
255 257 return json_decode( $case, true );
256 258 }