#15265 closed defect (bug) (fixed)
PHP Notice undefined string offset in post.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Editor | Version: | 3.1 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: |
Description
I'm getting the following PHP Notice in debug mode when creating/editing posts:
Uninitialized string offset: 0 in \wp\wp-admin\includes\post.php on line 1549
It's because some of the TinyMCE initArray options are empty strings. Suggest adding an extra check in line 1549's elseif.
Attachments (1)
Change History (5)
solarissmoke — 3 years ago
comment:1
solarissmoke — 3 years ago
- Keywords has-patch added
comment:2
solarissmoke — 3 years ago
- Severity changed from minor to trivial
comment:3
automattor — 3 years ago
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Check that string is non-empty before looking for first character