Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#34264 closed defect (bug) (fixed)

Don't use a variable for the `do_feed_{feed}` action name

Reported by: johnbillion Owned by: DrewAPicture
Priority: normal Milestone: 4.4
Component: Feeds Version: 2.1
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

Attachments (1)

34264.diff (707 bytes ) - added by johnbillion 11 years ago.

Download all attachments as: .zip

Change History (5)

@johnbillion
11 years ago

#1 @johnbillion
11 years ago

  • Keywords has-patch added
  • Owner set to DrewAPicture
  • Status newassigned

@DrewAPicture 34264.diff should fix it, no?

#2 @DrewAPicture
11 years ago

  • Status assignedreviewing

#3 @DrewAPicture
11 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 35097:

Feeds: Adjust the do_feed_{$feed} hook name to actually be dynamic, rather than pre-storing the tag name in a variable and referencing that.

Props johnbillion.
Fixes #34264.

#4 @DrewAPicture
11 years ago

In 35098:

Feeds: Simplify logic for checking if the do_feed_{$feed} action is hooked to any callbacks.

See [35097] for where the aforementioned hook was renamed to actually be dynamic, thus rendering creation of the extra $hook variable moot.

See #34264.

Note: See TracTickets for help on using tickets.