Make WordPress Core

Opened 10 years ago

Closed 9 years ago

Last modified 9 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:


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 10 years ago.
the_meta hidden feilds fix
2478.diff (792 bytes) - added by davidhouse 10 years ago.
Roughly the same patch
2478_20.diff (604 bytes) - added by Nazgul 9 years ago.

Download all attachments as: .zip

Change History (11)

10 years ago

the_meta hidden feilds fix

#1 @MattRead
10 years ago

  • Version changed from 1.2 to 2.0.1

10 years ago

Roughly the same patch

#2 @davidhouse
10 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.

#3 @davidhouse
10 years ago

  • Keywords bg|has-patch added

#4 @markjaquith
9 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

9 years ago

#5 @Nazgul
9 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.

#6 @markjaquith
9 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

#8 @anonymous
9 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.