Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/15/2011 11:13:32 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Normalize all post_meta values by removing the _forum, _topic, and _reply prefixes off of them where appropriate. There is no point in having them be unique to the post type as it only duplicates the code needed to perform requests. Future trimming to follow.

Introduce bbp-update.php file, which is used to update existing installations to the new meta_key names from this revision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-general-template.php

    r2901 r2905  
    575575        // Don't show private forums to normal users
    576576        if ( !current_user_can( 'read_private_forums' ) && empty( $r['meta_key'] ) && empty( $r['meta_value'] ) && empty( $r['meta_compare'] ) ) {
    577             $r['meta_key']   = '_bbp_forum_visibility';
     577            $r['meta_key']   = '_bbp_visibility';
    578578            $r['meta_value'] = 'public';
    579579        }
Note: See TracChangeset for help on using the changeset viewer.