Commit f844d4b
committed
Plugin Directory: Fix PHP warnings when building plugin ZIPs and checking block plugins.
When an SVN export fails but the error details aren't available, the code
tried to read them anyway, triggering warnings. Add a fallback so a
generic message is used instead.
Also fixes a typo in a constant name that would have caused a fatal error
when a plugin directory turned out to be empty.
git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14773 74240141-8908-4e6f-9713-ba540dce6ec71 parent 63a36c0 commit f844d4b
2 files changed
Lines changed: 4 additions & 4 deletions
File tree
- wordpress.org/public_html/wp-content/plugins/plugin-directory
- cli
- zip
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
| 251 | + | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
0 commit comments