Skip to content

Commit bb822fe

Browse files
authored
Merge pull request #2637 from rodrigoprimo/fix-vip-links
Documentation: fix broken WordPress VIP links in sniff docblocks
2 parents 882af07 + 20b2c5a commit bb822fe

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

WordPress/Sniffs/DB/DirectDatabaseQuerySniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Flag Database direct queries.
2121
*
22-
* @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#direct-database-queries
22+
* @link https://docs.wpvip.com/php_codesniffer/warnings/#h-direct-database-queries
2323
*
2424
* @since 0.3.0
2525
* @since 0.6.0 Removed the add_unique_message() function as it is no longer needed.

WordPress/Sniffs/DB/SlowDBQuerySniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Flag potentially slow queries.
1616
*
17-
* @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#uncached-pageload
17+
* @link https://docs.wpvip.com/php_codesniffer/warnings/#h-functions-that-use-joins-taxonomy-relation-queries-cat-tax-queries-subselects-or-api-calls
1818
*
1919
* @since 0.3.0
2020
* @since 0.13.0 Class name changed: this class is now namespaced.

WordPress/Sniffs/DateTime/RestrictedFunctionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getGroups() {
2929
/*
3030
* Disallow the changing the timezone.
3131
*
32-
* @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#manipulating-the-timezone-server-side
32+
* @link https://docs.wpvip.com/php_codesniffer/errors/#h-manipulating-the-timezone-server-side
3333
*/
3434
'timezone_change' => array(
3535
'type' => 'error',

WordPress/Sniffs/Security/PluginMenuSlugSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Warn about __FILE__ for page registration.
1717
*
18-
* @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#using-__file__-for-page-registration
18+
* @link https://docs.wpvip.com/php_codesniffer/warnings/#h-using-file-for-page-registration
1919
*
2020
* @since 0.3.0
2121
* @since 0.11.0 Refactored to extend the new WordPressCS native

WordPress/Sniffs/WP/CronIntervalSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* Flag cron schedules less than 15 minutes.
2424
*
25-
* @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#cron-schedules-less-than-15-minutes-or-expensive-events
25+
* @link https://docs.wpvip.com/php_codesniffer/warnings/#h-cron-schedules-less-than-15-minutes-or-expensive-events
2626
*
2727
* @since 0.3.0
2828
* @since 0.11.0 - Extends the WordPressCS native `Sniff` class.

WordPress/Sniffs/WP/EnqueuedResourcesSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
/**
1919
* Makes sure scripts and styles are enqueued and not explicitly echo'd.
2020
*
21-
* @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#inline-resources
22-
*
2321
* @since 0.3.0
2422
* @since 0.12.0 This class now extends the WordPressCS native `Sniff` class.
2523
* @since 0.13.0 Class name changed: this class is now namespaced.

WordPress/Sniffs/WP/PostsPerPageSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* Flag returning high or infinite posts_per_page.
1818
*
19-
* @link https://vip.wordpress.com/documentation/vip-go/code-review-blockers-warnings-notices/#no-limit-queries
19+
* @link https://docs.wpvip.com/php_codesniffer/warnings/#h-no-limit-queries
2020
*
2121
* @since 0.3.0
2222
* @since 0.13.0 Class name changed: this class is now namespaced.

0 commit comments

Comments
 (0)