Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#36727 closed defect (bug) (fixed)

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

Reported by: redsand's profile RedSand Owned by: sergeybiryukov's profile 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 8 years ago.

Download all attachments as: .zip

Change History (7)

@RedSand
8 years ago

#1 @RedSand
8 years ago

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

#2 @markoheijnen
8 years ago

  • Keywords commit added

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

#3 @RedSand
8 years ago

@markoheijnen

You're welcome. Happy to help.

#4 @SergeyBiryukov
8 years ago

  • Milestone changed from Awaiting Review to 4.7

#5 @SergeyBiryukov
8 years ago

  • Description modified (diff)

#6 @SergeyBiryukov
8 years 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.