Opened 3 years ago
Closed 3 years ago
#11839 closed defect (bug) (fixed)
Two notices in post_custom()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Template | Version: | 2.9.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
When someone will use non-existing index, PHP will display following notices:
Notice: Undefined index: views in C:\wordpress.local\wp-includes\post-template.php on line 649
Notice: Undefined index: views in C:\wordpress.local\wp-includes\post-template.php on line 652
Attached patch fixes this - when someone will use non-exiting index, post_custom() will return empty string.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Hmm, I wonder if it would be better to return null instead.