Commit 6dac3b4
committed
Media: Fix logic when checking IPTC alt text meta data.
Fix two conditional checks for validity of data when importing alt text from IPTC meta data. Strictly compare the results of `strpos()` as a boolean, rather than treating 0 as false; return string if `file_get_contents()` returns false.
Props suhan2411, pbiron, alexodiy, joedolson.
Fixes #64849.
git-svn-id: https://develop.svn.wordpress.org/trunk@62027 602fd350-edb4-49c9-b593-d223f7449a821 parent debd1f5 commit 6dac3b4
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1091 | 1096 | | |
1092 | 1097 | | |
1093 | 1098 | | |
1094 | 1099 | | |
1095 | | - | |
| 1100 | + | |
1096 | 1101 | | |
1097 | 1102 | | |
1098 | 1103 | | |
| |||
0 commit comments