WordPress.org

Make WordPress Core

#36727 closed defect (bug) (fixed)

PHP Notice in class-wp-xmlrpc-server.php when $matchtitle[1] is undefined

Reported by: RedSand Owned by: SergeyBiryukov
Milestone: 4.7 Priority: normal
Severity: minor Version: 4.5.1
Component: XML-RPC Keywords: has-patch commit
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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.

Attachments (1)

ticket36727.patch (690 bytes) - added by RedSand 19 months ago.

Download all attachments as: .zip

Change History (7)

#1 @RedSand
19 months ago

  • Keywords has-patch added
  • Severity changed from normal to minor

#2 @markoheijnen
14 months ago

  • Keywords commit added

Thank you for your patch and indeed it's a easy fix.

#3 @RedSand
14 months ago

@markoheijnen

You're welcome. Happy to help.

#4 @SergeyBiryukov
14 months ago

  • Milestone changed from Awaiting Review to 4.7

#5 @SergeyBiryukov
14 months ago

  • Description modified (diff)

#6 @SergeyBiryukov
14 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 38620:

XML-RPC: Avoid a PHP notice in ::pingback_ping() if page title was not found.

Props RedSand.
Fixes #36727.

Note: See TracTickets for help on using tickets.