Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#21041 closed enhancement (fixed)

Remove variable store in get_the_excerpt

Reported by: niallkennedy Owned by: markjaquith
Priority: normal Milestone: 3.5
Component: Template Version:
Severity: trivial Keywords: has-patch commit
Cc: Focuses:

Description

It looks like get_the_excerpt() either returns a password protected message or post->post_excerpt passed through a filter.

Storing excerpt in a variable should not be necessary; pass directly instead.

Attachments (1)

post-template.diff (667 bytes ) - added by niallkennedy 14 years ago.
return string without first storing it in a variable

Download all attachments as: .zip

Change History (3)

@niallkennedy
14 years ago

return string without first storing it in a variable

#1 @nacin
14 years ago

  • Keywords commit added
  • Milestone Awaiting Review3.5
  • Severity minortrivial

#2 @markjaquith
14 years ago

  • Owner set to markjaquith
  • Resolutionfixed
  • Status newclosed

In [21159]:

Do not store post_excerpt in a temporary variable when we can just return it directly. props niallkennedy. fixes #21041

Note: See TracTickets for help on using tickets.