[wp-trac] [WordPress Trac] #36727: PHP Notice in class-wp-xmlrpc-server.php when $matchtitle[1] is undefined

WordPress Trac noreply at wordpress.org
Sun Sep 18 14:20:27 UTC 2016


#36727: PHP Notice in class-wp-xmlrpc-server.php when $matchtitle[1] is undefined
------------------------------+--------------------
 Reporter:  RedSand           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.7
Component:  XML-RPC           |     Version:  4.5.1
 Severity:  minor             |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------
Description changed by SergeyBiryukov:

Old description:

> We see this error fairly often when WP_DEBUG is enabled. (We use WP_DEBUG
> quite often - logging, no visual error display.)
>
> {{{
> PHP Notice:  Undefined offset: 1 in /XXXXXXXX/wp-includes/class-wp-
> xmlrpc-server.php on line 6329
> }}}
>
> Happens when $matchtitle[1] is undefined. It's an easy fix. See attached
> patch.

New description:

 We see this error fairly often when WP_DEBUG is enabled. (We use WP_DEBUG
 quite often - logging, no visual error display.)

 {{{
 PHP Notice:  Undefined offset: 1 in /XXXXXXXX/wp-includes/class-wp-xmlrpc-
 server.php on line 6329
 }}}

 Happens when `$matchtitle[1]` is undefined. It's an easy fix. See attached
 patch.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36727#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list