WordPress.org

Make WordPress Core

#24233 closed defect (bug) (fixed)

_post_formats_title() assumes it will always get two arguments

Reported by: markjaquith Owned by: SergeyBiryukov
Milestone: 3.6 Priority: high
Severity: normal Version: 3.6
Component: Warnings/Notices Keywords:
Focuses: Cc:

Description

If 'the_title' is called with one argument, it's going to complain.

https://twitter.com/16kbit/status/329331910209851393

Change History (3)

comment:1 kpdesign12 months ago

Also reported here: http://wordpress.org/support/topic/p2-issues-with-wp-36-beta1-24113.

kovshenin submitted a patch for the issue here: http://core.trac.wordpress.org/ticket/24011#comment:37

I tested his patch this morning against 3.6-beta2, and it resolved the notices I was getting with P2.

comment:2 kpdesign12 months ago

  • Cc kpdesign3@… added

comment:3 SergeyBiryukov12 months ago

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

In 24146:

Make $post_id argument optional for _post_formats_title(). props kovshenin. fixes #24233. see #24011.

Note: See TracTickets for help on using tickets.