WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#2478 closed defect (bug) (fixed)

the_meta() doesn't hide hidden meta keys

Reported by: MattRead Owned by: markjaquith
Milestone: Priority: low
Severity: trivial Version: 2.0.1
Component: Template Keywords: commit has-patch
Focuses: Cc:

Description

meta keys begining with underscore (_) are supposed to be hidden feilds, as far as I know. But the_meta() does not hide them. So here's a patch for the_meta() that will not display hidden feilds.

Attachments (3)

template-functions-post.php.diff (778 bytes) - added by MattRead 8 years ago.
the_meta hidden feilds fix
2478.diff (792 bytes) - added by davidhouse 8 years ago.
Roughly the same patch
2478_20.diff (604 bytes) - added by Nazgul 8 years ago.

Download all attachments as: .zip

Change History (11)

MattRead8 years ago

the_meta hidden feilds fix

comment:1 MattRead8 years ago

  • Version changed from 1.2 to 2.0.1

davidhouse8 years ago

Roughly the same patch

comment:2 davidhouse8 years ago

  • Keywords bg|commit added

Confirm bug and that MattRead's diff fixes things. I couldn't get it to apply against latest svn for some reason, so here's a rougly equivalent patch (read: does the same things) that should apply fine.

comment:3 davidhouse8 years ago

  • Keywords bg|has-patch added

comment:4 markjaquith8 years ago

  • Keywords bg|needs-patch refresh added; bg|has-patch removed
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

Needs to be refreshed

Nazgul8 years ago

comment:5 Nazgul8 years ago

  • Keywords commit has-patch added; bg|commit bg|needs-patch refresh removed
  • Milestone set to 2.0.5

New patch attached for 2.0.5. Backported the fix from trunk.

comment:6 markjaquith8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4368]) the_meta() should ignore keys that start with an underscore. Props Nazgul. fixes #2478

comment:8 anonymous7 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.