Commit 2681e0f
committed
Plugin Directory: Fix PHP warnings for undefined array keys in upload handler.
Two loops reused a variable name that overwrote the full plugin check
result. When the code later tried to read the process output and error
details, those keys didn't exist on the individual check record.
Also ensures the early return when the process fails to start includes
all expected keys, matching the structure returned on the normal path.
git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14783 74240141-8908-4e6f-9713-ba540dce6ec71 parent e8c0553 commit 2681e0f
2 files changed
Lines changed: 18 additions & 11 deletions
File tree
- wordpress.org/public_html/wp-content/plugins/plugin-directory
- jobs
- shortcodes
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
364 | 371 | | |
365 | 372 | | |
366 | 373 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
821 | | - | |
| 820 | + | |
| 821 | + | |
822 | 822 | | |
823 | | - | |
824 | | - | |
| 823 | + | |
| 824 | + | |
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | | - | |
855 | | - | |
856 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| |||
0 commit comments