Making WordPress.org


Ignore:
Timestamp:
02/15/2018 09:19:22 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Clarify that notes are private.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-functions.php

    r3127 r6649  
    104104 */
    105105function wcpt_get_log_entries( $wordcamp_id ) {
     106    /*
     107     * @todo Rename `_note` meta fields to `_private_note` to make it obvious to devs that the value should be
     108     * treated as private. The `get_post_metadata` filter can be used to support back-compat w/out having to
     109     * rename old entries in database.
     110     */
    106111    $entries        = array();
    107     $notes          = get_post_meta( $wordcamp_id, '_note'          );
     112    $private_notes  = get_post_meta( $wordcamp_id, '_note'          );
    108113    $status_changes = get_post_meta( $wordcamp_id, '_status_change' );
    109114
    110     foreach ( array( 'note' => $notes, 'status_change' => $status_changes ) as $entry_type => $raw_entries ) {
     115    foreach ( array( 'note' => $private_notes, 'status_change' => $status_changes ) as $entry_type => $raw_entries ) {
    111116        foreach ( $raw_entries as $entry ) {
    112117            $user = get_user_by( 'id', $entry['user_id'] );
Note: See TracChangeset for help on using the changeset viewer.