WordPress.org

Plugin Directory

Changeset 858503


Ignore:
Timestamp:
02/15/14 16:28:12 (19 months ago)
Author:
joedolson
Message:

Commit dev changes: new filter, new template tag

Location:
my-content-management/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • my-content-management/trunk/mcm-custom-posts.php

    r853781 r858503  
    124124            $id = sanitize_title( $field ); 
    125125            $field = stripslashes( $field ); 
    126             add_meta_box( $id, $field, 'mcm_build_custom_box', $post_type, $location, $priority, $fields ); 
     126            if ( apply_filters( 'mcm_filter_meta_box', true, $post_type, $id ) ) { 
     127                add_meta_box( $id, $field, 'mcm_build_custom_box', $post_type, $location, $priority, $fields ); 
     128            } 
    127129        } 
    128130    } 
  • my-content-management/trunk/mcm-view-custom-posts.php

    r856708 r858503  
    159159        $first = true; 
    160160        while ( $loop->have_posts() ) : $loop->the_post(); 
     161            global $post; 
    161162            $p = array(); 
    162163            $id = get_the_ID(); 
    163164            $p['id'] = $id; 
     165            $p['slug'] = $post->post_name; 
    164166            $p['post_type'] = get_post_type( $id ); 
    165167            $p['permalink'] = get_permalink(); 
     
    209211            $the_post = get_post( $v ); 
    210212            $p['id'] = $the_post->ID; 
     213            $p['slug'] = $the_post->post_name; 
    211214            $p['post_type'] = get_post_type( $the_post->ID );            
    212215            $p['excerpt'] = wpautop( $the_post->post_excerpt ); 
  • my-content-management/trunk/readme.txt

    r856714 r858503  
    6060== Changelog == 
    6161 
     62= 1.4.9 = 
     63 
     64* Added {slug} template tag. 
     65* Added filter to target custom field sets to specific posts or sets of posts. 
     66 
    6267= 1.4.8 = 
    6368 
Note: See TracChangeset for help on using the changeset viewer.