WordPress.org

Plugin Directory

Changeset 618073


Ignore:
Timestamp:
10/27/12 18:27:13 (18 months ago)
Author:
joedolson
Message:

Commit version 1.2.8

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

Legend:

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

    r607230 r618073  
    5454            $messages[$key] = array( 
    5555                0 => '', // Unused. Messages start at index 1. 
    56                 1 => sprintf( __('%1$s Listing updated. <a href="%2$s">View %1$s listing</a>'), $value[2], esc_url( get_permalink($post_ID) ) ), 
    57                 2 => __('Custom field updated.'), 
    58                 3 => __('Custom field deleted.'), 
    59                 4 => sprintf( __('%s listing updated.'), $value[2] ), 
     56                1 => sprintf( __('%1$s Listing updated. <a href="%2$s">View %1$s listing</a>','my-content-management'), $value[2], esc_url( get_permalink($post_ID) ) ), 
     57                2 => __('Custom field updated.','my-content-management'), 
     58                3 => __('Custom field deleted.','my-content-management'), 
     59                4 => sprintf( __('%s listing updated.','my-content-management'), $value[2] ), 
    6060                /* translators: %s: date and time of the revision */ 
    61                 5 => isset($_GET['revision']) ? sprintf( __('%1$s restored to revision from %2$ss'), $value[2], wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, 
    62                 6 => sprintf( __('%1$s published. <a href="%2$s">View %3$s listing</a>'), $value[2], esc_url( get_permalink($post_ID) ), $value[0] ), 
    63                 7 => sprintf( __('Product listing saved.'), $value[2] ), 
    64                 8 => sprintf( __('%1$s listing submitted. <a target="_blank" href="%2$s">Preview %3$s listing</a>'), $value[2], esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), $value[0] ), 
    65                 9 => sprintf( __('%1$s listing scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview %3$s item</a>'), 
     61                5 => isset($_GET['revision']) ? sprintf( __('%1$s restored to revision from %2$ss','my-content-management'), $value[2], wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, 
     62                6 => sprintf( __('%1$s published. <a href="%2$s">View %3$s listing</a>','my-content-management'), $value[2], esc_url( get_permalink($post_ID) ), $value[0] ), 
     63                7 => sprintf( __('Product listing saved.','my-content-management'), $value[2] ), 
     64                8 => sprintf( __('%1$s listing submitted. <a target="_blank" href="%2$s">Preview %3$s listing</a>','my-content-management'), $value[2], esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), $value[0] ), 
     65                9 => sprintf( __('%1$s listing scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview %3$s item</a>','my-content-management'), 
    6666                  $value[2], date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ), $value[0] ), 
    67                 10 => sprintf( __('%1$s draft updated. <a target="_blank" href="%s">Preview %3$s listing</a>'), $value[2], esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), $value[0] ), 
     67                10 => sprintf( __('%1$s draft updated. <a target="_blank" href="%s">Preview %3$s listing</a>','my-content-management'), $value[2], esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), $value[0] ), 
    6868            ); 
    6969        } 
  • my-content-management/trunk/mcm-view-custom-posts.php

    r607230 r618073  
    133133            $p['excerpt'] = wpautop( get_the_excerpt() ); 
    134134            $p['excerpt_raw'] = get_the_excerpt(); 
    135             $p['content'] = do_shortcode( wpautop( get_the_content() ) ); 
     135            remove_filter('the_content','mcm_replace_content'); 
     136            $p['content'] = apply_filters('the_content',get_the_content() ); 
     137            add_filter('the_content','mcm_replace_content'); 
    136138            $p['content_raw'] = get_the_content(); 
    137139            $p['thumbnail'] = get_the_post_thumbnail( $id, 'thumbnail', array( 'class'=>'mcm_thumbnail', 'alt'=>trim( strip_tags( get_the_title( $id ) ) ), 'title'=>'' ) ); 
     
    180182            $p['excerpt'] = wpautop( $the_post->post_excerpt ); 
    181183            $p['excerpt_raw'] = $the_post->post_excerpt; 
    182             $p['content'] = do_shortcode( wpautop( $the_post->post_content ) ); 
     184            //$p['content'] = do_shortcode( wpautop( $the_post->post_content ) ); 
     185            remove_filter('the_content','mcm_replace_content'); 
     186            $p['content'] = apply_filters('the_content', $the_post->post_content );  
     187            add_filter('the_content','mcm_replace_content'); 
    183188            $p['content_raw'] = $the_post->post_content; 
    184189            $p['thumbnail'] = get_the_post_thumbnail( $the_post->ID, 'thumbnail', array( 'class'=>'', 'alt'=>trim( strip_tags( get_the_title() ) ), 'title'=>'' ) ); 
     
    413418    for ($i = 0; $i <= strlen($unmixedkey); $i++) { 
    414419        $ranpos = rand(0,$unshuffled-1); 
    415         $nextchar = $inprogresskey{$ranpos}; 
     420        $nextchar = @$inprogresskey{$ranpos}; 
    416421        $mixedkey .= $nextchar; 
    417422        $before = substr($inprogresskey,0,$ranpos); 
  • my-content-management/trunk/my-content-management.php

    r607690 r618073  
    66Author: Joseph C Dolson 
    77Author URI: http://www.joedolson.com 
    8 Version: 1.2.7 
     8Version: 1.2.8 
    99*/ 
    1010/*  Copyright 2011-2012  Joe Dolson (email : joe@joedolson.com) 
     
    2424    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    2525*/ 
    26 $mcm_version = '1.2.7'; 
     26$mcm_version = '1.2.8'; 
    2727// Enable internationalisation 
    2828load_plugin_textdomain( 'my-content-management',false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );  
     
    126126    if ( strpos( $template, $post_type ) !== false ) { return $content; } 
    127127    $enabled = $mcm_options['enabled']; 
    128     if ( is_singular( $enabled ) ) { 
     128    if ( $enabled && is_singular( $enabled ) ) { 
    129129        $id = get_the_ID(); 
    130130        $template = mcm_get_single_post( $post_type, $id ); 
     
    802802            <li><a href="http://profiles.wordpress.org/users/joedolson/"><?php _e('Check out my other plug-ins','my-content-management'); ?></a></li> 
    803803            <li><a href="http://wordpress.org/extend/plugins/my-content-management/"><?php _e('Rate this plug-in','my-content-management'); ?></a></li> 
     804            <li><a href='http://translate.joedolson.com/projects/my-content-management'><?php _e('Help translate this plug-in','my-content-management'); ?></a></li> 
    804805        </ul> 
    805806        </div> 
  • my-content-management/trunk/my-glossary-filter.php

    r607955 r618073  
    22/* 
    33Plugin Name: My Content Management - Glossary Filter 
    4 Version: 1.2.7 
     4Version: 1.2.8 
    55Plugin URI: http://www.joedolson.com/articles/my-content-management/ 
    66Description: Adds custom glossary features: filters content for links to terms, etc. Companion plug-in to My Content Management. 
  • my-content-management/trunk/readme.txt

    r607690 r618073  
    5858== Changelog == 
    5959 
     60= 1.2.8 = 
     61 
     62* Bug fix: if no custom post types were enabled, 'full' template was rendered on all singular posts/pages. 
     63* Bug fix: embed filter did not run in custom post type templates 
     64 
    6065= 1.2.7 = 
    6166 
Note: See TracChangeset for help on using the changeset viewer.