#15265 closed defect (bug) (fixed)
PHP Notice undefined string offset in post.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | trivial | Version: | 3.1 |
Component: | Editor | Keywords: | has-patch |
Focuses: | 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)
Note: See
TracTickets for help on using
tickets.
Check that string is non-empty before looking for first character