Skip to content

Commit 2615834

Browse files
committed
Change version to 1.0.0 everywhere
1 parent dce4b43 commit 2615834

File tree

88 files changed

+423
-423
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+423
-423
lines changed

assets/js/plugin-check-admin.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
/**
9090
* Reset the results container.
9191
*
92-
* @since n.e.x.t
92+
* @since 1.0.0
9393
*/
9494
function resetResults() {
9595
// Empty the results container.
@@ -99,7 +99,7 @@
9999
/**
100100
* Resets the form controls once checks have completed or failed.
101101
*
102-
* @since n.e.x.t
102+
* @since 1.0.0
103103
*/
104104
function resetForm() {
105105
spinner.classList.remove( 'is-active' );
@@ -113,7 +113,7 @@
113113
/**
114114
* Setup the runtime environment if needed.
115115
*
116-
* @since n.e.x.t
116+
* @since 1.0.0
117117
*
118118
* @param {Object} data Data object with props passed to form data.
119119
*/
@@ -153,7 +153,7 @@
153153
/**
154154
* Cleanup the runtime environment.
155155
*
156-
* @since n.e.x.t
156+
* @since 1.0.0
157157
*
158158
* @return {Object} The response data.
159159
*/
@@ -186,7 +186,7 @@
186186
/**
187187
* Get the Checks to run.
188188
*
189-
* @since n.e.x.t
189+
* @since 1.0.0
190190
*/
191191
function getChecksToRun() {
192192
const pluginCheckData = new FormData();
@@ -230,7 +230,7 @@
230230
/**
231231
* Run Checks.
232232
*
233-
* @since n.e.x.t
233+
* @since 1.0.0
234234
*
235235
* @param {Object} data The response data.
236236
*/
@@ -259,7 +259,7 @@
259259
/**
260260
* Renders result message.
261261
*
262-
* @since n.e.x.t
262+
* @since 1.0.0
263263
*
264264
* @param {boolean} isSuccessMessage Whether the message is a success message.
265265
*/
@@ -279,7 +279,7 @@
279279
/**
280280
* Run a single check.
281281
*
282-
* @since n.e.x.t
282+
* @since 1.0.0
283283
*
284284
* @param {string} plugin The plugin to check.
285285
* @param {string} check The check to run.
@@ -314,7 +314,7 @@
314314
/**
315315
* Handles any errors in the data returned from the response.
316316
*
317-
* @since n.e.x.t
317+
* @since 1.0.0
318318
*
319319
* @param {Object} data The response data.
320320
* @return {Object} The response data.
@@ -340,7 +340,7 @@
340340
/**
341341
* Renders results for each check on the page.
342342
*
343-
* @since n.e.x.t
343+
* @since 1.0.0
344344
*
345345
* @param {Object} results The results object.
346346
*/
@@ -365,7 +365,7 @@
365365
/**
366366
* Renders the file results table.
367367
*
368-
* @since n.e.x.t
368+
* @since 1.0.0
369369
*
370370
* @param {string} file The file name for the results.
371371
* @param {Object} errors The file errors.
@@ -397,7 +397,7 @@
397397
/**
398398
* Checks if there are any links in the results object.
399399
*
400-
* @since n.e.x.t
400+
* @since 1.0.0
401401
*
402402
* @param {Object} results The results object.
403403
* @return {boolean} True if there are links, false otherwise.
@@ -418,7 +418,7 @@
418418
/**
419419
* Renders a result row onto the file table.
420420
*
421-
* @since n.e.x.t
421+
* @since 1.0.0
422422
*
423423
* @param {string} type The result type. Either ERROR or WARNING.
424424
* @param {Object} results The results object.
@@ -454,7 +454,7 @@
454454
/**
455455
* Renders the template with data.
456456
*
457-
* @since n.e.x.t
457+
* @since 1.0.0
458458
*
459459
* @param {string} templateSlug The template slug
460460
* @param {Object} data Template data.

cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This is necessary to setup the environment to perform runtime checks.
66
*
77
* @package plugin-check
8-
* @since n.e.x.t
8+
* @since 1.0.0
99
*/
1010

1111
use WordPress\Plugin_Check\Checker\CLI_Runner;
@@ -40,7 +40,7 @@
4040
/**
4141
* Adds hook to set up the object-cache.php drop-in file.
4242
*
43-
* @since n.e.x.t
43+
* @since 1.0.0
4444
*/
4545
WP_CLI::add_hook(
4646
'before_wp_load',

docs/creating-a-static-check.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class My_Custom_Check extends Abstract_PHP_CodeSniffer_Check {
5353
*
5454
* Every check must have at least one category.
5555
*
56-
* @since n.e.x.t
56+
* @since 1.0.0
5757
*
5858
* @return array The categories for the check.
5959
*/
@@ -88,7 +88,7 @@ use WordPress\Plugin_Check\Traits\Stable_Check;
8888
/**
8989
* Check for detecting incorrect casing of the term "WordPress" (specifically "Wordpress") using string search in files.
9090
*
91-
* @since n.e.x.t
91+
* @since 1.0.0
9292
*/
9393
class My_Custom_Check extends Abstract_File_Check {
9494

@@ -99,7 +99,7 @@ class My_Custom_Check extends Abstract_File_Check {
9999
*
100100
* Every check must have at least one category.
101101
*
102-
* @since n.e.x.t
102+
* @since 1.0.0
103103
*
104104
* @return array The categories for the check.
105105
*/
@@ -110,7 +110,7 @@ class My_Custom_Check extends Abstract_File_Check {
110110
/**
111111
* Check the "Wordpress" in files.
112112
*
113-
* @since n.e.x.t
113+
* @since 1.0.0
114114
*
115115
* @param Check_Result $result The Check Result to amend.
116116
* @param array $files Array of plugin files.
@@ -160,7 +160,7 @@ Below is an example demonstrating how to access the plugin context and add messa
160160
/**
161161
* Runs the check on the plugin and amends results.
162162
*
163-
* @since n.e.x.t
163+
* @since 1.0.0
164164
*
165165
* @param Check_Result $result The check results to amend and the plugin context.
166166
*/

drop-ins/object-cache.copy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* be using, and it is implemented in a way that there is no risk for breakage.
2020
*
2121
* @package plugin-check
22-
* @since n.e.x.t
22+
* @since 1.0.0
2323
*/
2424

2525
// Set constant to be able to later check for whether this file was loaded.

includes/Admin/Admin_AJAX.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,54 +17,54 @@
1717
/**
1818
* Class to handle the Admin AJAX requests.
1919
*
20-
* @since n.e.x.t
20+
* @since 1.0.0
2121
*/
2222
final class Admin_AJAX {
2323

2424
/**
2525
* Nonce key.
2626
*
27-
* @since n.e.x.t
27+
* @since 1.0.0
2828
* @var string
2929
*/
3030
const NONCE_KEY = 'plugin-check-run-checks';
3131

3232
/**
3333
* Clean up Runtime Environment action name.
3434
*
35-
* @since n.e.x.t
35+
* @since 1.0.0
3636
* @var string
3737
*/
3838
const ACTION_CLEAN_UP_ENVIRONMENT = 'plugin_check_clean_up_environment';
3939

4040
/**
4141
* Set up Runtime Environment action name.
4242
*
43-
* @since n.e.x.t
43+
* @since 1.0.0
4444
* @var string
4545
*/
4646
const ACTION_SET_UP_ENVIRONMENT = 'plugin_check_set_up_environment';
4747

4848
/**
4949
* Get Checks to run action name.
5050
*
51-
* @since n.e.x.t
51+
* @since 1.0.0
5252
* @var string
5353
*/
5454
const ACTION_GET_CHECKS_TO_RUN = 'plugin_check_get_checks_to_run';
5555

5656
/**
5757
* Run Checks action name.
5858
*
59-
* @since n.e.x.t
59+
* @since 1.0.0
6060
* @var string
6161
*/
6262
const ACTION_RUN_CHECKS = 'plugin_check_run_checks';
6363

6464
/**
6565
* Registers WordPress hooks for the Admin AJAX.
6666
*
67-
* @since n.e.x.t
67+
* @since 1.0.0
6868
*/
6969
public function add_hooks() {
7070
add_action( 'wp_ajax_' . self::ACTION_CLEAN_UP_ENVIRONMENT, array( $this, 'clean_up_environment' ) );
@@ -76,7 +76,7 @@ public function add_hooks() {
7676
/**
7777
* Creates and returns the nonce.
7878
*
79-
* @since n.e.x.t
79+
* @since 1.0.0
8080
*/
8181
public function get_nonce() {
8282
return wp_create_nonce( self::NONCE_KEY );
@@ -85,7 +85,7 @@ public function get_nonce() {
8585
/**
8686
* Handles the AJAX request to setup the runtime environment if needed.
8787
*
88-
* @since n.e.x.t
88+
* @since 1.0.0
8989
*/
9090
public function set_up_environment() {
9191
// Verify the nonce before continuing.
@@ -144,7 +144,7 @@ public function set_up_environment() {
144144
/**
145145
* Handles the AJAX request to cleanup the runtime environment.
146146
*
147-
* @since n.e.x.t
147+
* @since 1.0.0
148148
*/
149149
public function clean_up_environment() {
150150
global $wpdb, $table_prefix;
@@ -181,7 +181,7 @@ public function clean_up_environment() {
181181
/**
182182
* Handles the AJAX request that returns the checks to run.
183183
*
184-
* @since n.e.x.t
184+
* @since 1.0.0
185185
*/
186186
public function get_checks_to_run() {
187187
// Verify the nonce before continuing.
@@ -235,7 +235,7 @@ public function get_checks_to_run() {
235235
/**
236236
* Run checks.
237237
*
238-
* @since n.e.x.t
238+
* @since 1.0.0
239239
*/
240240
public function run_checks() {
241241
// Verify the nonce before continuing.
@@ -286,7 +286,7 @@ public function run_checks() {
286286
/**
287287
* Verify the request.
288288
*
289-
* @since n.e.x.t
289+
* @since 1.0.0
290290
*
291291
* @param string $nonce The request nonce passed.
292292
* @return bool|WP_Error True if the nonce is valid. WP_Error if invalid.
@@ -306,7 +306,7 @@ private function verify_request( $nonce ) {
306306
/**
307307
* Check for a Runtime_Check in a list of checks.
308308
*
309-
* @since n.e.x.t
309+
* @since 1.0.0
310310
*
311311
* @param array $checks An array of Check instances.
312312
* @return bool True if a Runtime_Check exists in the array, false if not.

0 commit comments

Comments
 (0)