Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#2478 closed defect (bug) (fixed)

the_meta() doesn't hide hidden meta keys

Reported by: MattRead Owned by: markjaquith
Priority: low Milestone:
Component: Template Version: 2.0.1
Severity: trivial Keywords: commit has-patch
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 7 years ago.
the_meta hidden feilds fix
2478.diff (792 bytes) - added by davidhouse 7 years ago.
Roughly the same patch
2478_20.diff (604 bytes) - added by Nazgul 7 years ago.

Download all attachments as: .zip

Change History (11)

the_meta hidden feilds fix

  • Version changed from 1.2 to 2.0.1

Roughly the same patch

  • 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.

  • Keywords bg|has-patch added
  • 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

Nazgul7 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.

  • 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

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.