Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#36727 closed defect (bug) (fixed)

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

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

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 10 years ago.

Download all attachments as: .zip

Change History (7)

#1 @RedSand
10 years ago

  • Keywords has-patch added
  • Severity normalminor

#2 @markoheijnen
10 years ago

  • Keywords commit added

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

#3 @RedSand
10 years ago

@markoheijnen

You're welcome. Happy to help.

#4 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review4.7

#5 @SergeyBiryukov
10 years ago

  • Description modified (diff)

#6 @SergeyBiryukov
10 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

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.