|
15 | 15 | // Expected values. |
16 | 16 | $expected = [ |
17 | 17 | 'errors' => [ |
18 | | - 4 => 1, |
19 | | - 7 => 1, |
20 | | - 10 => 1, |
21 | | - 14 => 1, |
22 | | - 17 => 1, |
23 | | - 20 => 1, |
24 | | - 23 => 1, |
25 | | - 26 => 1, |
26 | | - 29 => 1, |
27 | | - 32 => 1, |
28 | | - 35 => 1, |
29 | | - 38 => 1, |
30 | | - 41 => 1, |
31 | | - 44 => 1, |
32 | | - 47 => 1, |
33 | 18 | 50 => 1, |
34 | 19 | 53 => 1, |
35 | 20 | 56 => 1, |
36 | | - 60 => 1, |
37 | | - 63 => 1, |
38 | | - 66 => 1, |
39 | 21 | 72 => 1, |
40 | 22 | 83 => 1, |
41 | 23 | 165 => 1, |
|
109 | 91 | 388 => 1, |
110 | 92 | 389 => 1, |
111 | 93 | 390 => 1, |
112 | | - 391 => 1, |
113 | | - 392 => 1, |
114 | | - 394 => 1, |
115 | | - 395 => 1, |
116 | | - 398 => 1, |
117 | | - 399 => 1, |
118 | | - 400 => 1, |
119 | | - 401 => 1, |
120 | | - 402 => 1, |
121 | | - 403 => 1, |
122 | | - 404 => 1, |
123 | | - 405 => 1, |
124 | | - 406 => 1, |
125 | | - 407 => 1, |
126 | | - 408 => 1, |
127 | 94 | 409 => 1, |
128 | 95 | 410 => 1, |
129 | 96 | 411 => 1, |
|
164 | 131 | 575 => 1, |
165 | 132 | ], |
166 | 133 | 'warnings' => [ |
| 134 | + 4 => 1, |
| 135 | + 7 => 1, |
| 136 | + 10 => 1, |
| 137 | + 14 => 1, |
| 138 | + 17 => 1, |
| 139 | + 20 => 1, |
| 140 | + 23 => 1, |
| 141 | + 26 => 1, |
| 142 | + 29 => 1, |
| 143 | + 32 => 1, |
| 144 | + 35 => 1, |
| 145 | + 38 => 1, |
| 146 | + 41 => 1, |
| 147 | + 44 => 1, |
| 148 | + 47 => 1, |
| 149 | + 60 => 1, |
| 150 | + 63 => 1, |
| 151 | + 66 => 1, |
167 | 152 | 85 => 1, |
168 | 153 | 90 => 1, |
169 | 154 | 94 => 1, |
|
218 | 203 | 322 => 1, |
219 | 204 | 326 => 1, |
220 | 205 | 332 => 1, |
| 206 | + 391 => 1, |
| 207 | + 392 => 1, |
| 208 | + 394 => 1, |
| 209 | + 395 => 1, |
| 210 | + 398 => 1, |
| 211 | + 399 => 1, |
| 212 | + 400 => 1, |
| 213 | + 401 => 1, |
| 214 | + 402 => 1, |
| 215 | + 403 => 1, |
| 216 | + 404 => 1, |
| 217 | + 405 => 1, |
| 218 | + 406 => 1, |
| 219 | + 407 => 1, |
| 220 | + 408 => 1, |
221 | 221 | 416 => 1, |
222 | 222 | 417 => 1, |
223 | 223 | 418 => 1, |
|
242 | 242 | ], |
243 | 243 | 'messages' => [ |
244 | 244 | 4 => [ |
245 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as delete() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 245 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as delete(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
246 | 246 | ], |
247 | 247 | 7 => [ |
248 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as file_put_contents() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 248 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as file_put_contents(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
249 | 249 | ], |
250 | 250 | 10 => [ |
251 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as flock() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 251 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as flock(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
252 | 252 | ], |
253 | 253 | 14 => [ |
254 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as fputcsv() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 254 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as fputcsv(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
255 | 255 | ], |
256 | 256 | 17 => [ |
257 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as fputs() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 257 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as fputs(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
258 | 258 | ], |
259 | 259 | 20 => [ |
260 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as fwrite() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 260 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as fwrite(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
261 | 261 | ], |
262 | 262 | 23 => [ |
263 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as ftruncate() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 263 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as ftruncate(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
264 | 264 | ], |
265 | 265 | 26 => [ |
266 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as is_writable() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 266 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as is_writable(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
267 | 267 | ], |
268 | 268 | 29 => [ |
269 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as is_writeable() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 269 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as is_writeable(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
270 | 270 | ], |
271 | 271 | 32 => [ |
272 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as link() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 272 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as link(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
273 | 273 | ], |
274 | 274 | 35 => [ |
275 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as rename() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 275 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as rename(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
276 | 276 | ], |
277 | 277 | 38 => [ |
278 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as symlink() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 278 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as symlink(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
279 | 279 | ], |
280 | 280 | 41 => [ |
281 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as tempnam() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 281 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as tempnam(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
282 | 282 | ], |
283 | 283 | 44 => [ |
284 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as touch() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 284 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as touch(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
285 | 285 | ], |
286 | 286 | 47 => [ |
287 | | - 'File system writes only work in /tmp/ and inside the /uploads/ folder on VIP Go. To do filesystem writes you must use the WP_Filesystem class, using functions such as unlink() won\'t work or will return unexpected results. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 287 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as unlink(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
288 | 288 | ], |
289 | 289 | 50 => [ |
290 | 290 | 'Due to server-side caching, server-side based client related logic might not work. We recommend implementing client side logic in JavaScript instead.', |
|
296 | 296 | 'Due to server-side caching, server-side based client related logic might not work. We recommend implementing client side logic in JavaScript instead.', |
297 | 297 | ], |
298 | 298 | 60 => [ |
299 | | - 'File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose(). Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 299 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as fclose(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
300 | 300 | ], |
301 | 301 | 63 => [ |
302 | | - 'File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen(). Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 302 | + 'File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as fopen(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
303 | 303 | ], |
304 | 304 | 66 => [ |
305 | | - 'file_get_contents() is uncached. If this is being used to query a remote file please use wpcom_vip_file_get_contents() instead. If it\'s used for a local file please use WP_Filesystem instead. Read more here: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/', |
| 305 | + 'file_get_contents() is uncached. If the function is being used to fetch a remote file (e.g. a URL starting with https://), please use wpcom_vip_file_get_contents() to ensure the results are cached. For more details, please see https://wpvip.com/documentation/vip-go/fetching-remote-data/', |
306 | 306 | ], |
307 | 307 | 90 => [ |
308 | 308 | 'Having more than 100 posts returned per page may lead to severe performance problems.', |
|
0 commit comments