Opened 17 years ago
Closed 17 years ago
#11839 closed defect (bug) (fixed)
Two notices in post_custom()
| Reported by: | sirzooro | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Template | Version: | 2.9.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hmm, I wonder if it would be better to return
nullinstead.