WordPress.org

Plugin Directory

Changeset 671945


Ignore:
Timestamp:
02/22/13 22:05:45 (14 months ago)
Author:
joedolson
Message:

Bug fix: hyphens in munged email addresses.

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

Legend:

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

    r657057 r671945  
    3939                'menu_position' => 20, 
    4040                'has_archive' => true, 
    41                 'supports' => $raw['supports'] 
    42                 //'map_meta_cap'=>true, 
    43                 //'capability_type'=>array( $value[4],$value[3] ) 
     41                'supports' => $raw['supports'], 
     42                'map_meta_cap'=>true, 
     43                'capability_type'=>'post' // capability type is post type 
    4444            );  
    4545            register_post_type($key,$args); 
  • my-content-management/trunk/mcm-view-custom-posts.php

    r658247 r671945  
    2828        $the_cache = get_transient( "mcm_$cache_key" ); 
    2929    } 
    30     if ( $the_cache ) {  
    31         return $the_cache;  
     30    if ( $the_cache ) { 
     31        return $the_cache; 
    3232    } else { 
    3333    $keys = array_keys($types); 
     
    4646        if ( !in_array($primary,$keys,true) && !in_array('mcm_'.$primary,$keys,true ) ) { 
    4747            $wrapper = ( $template != '' )?$template:'mcm_people'; 
    48             $mcm = false;        
     48            $mcm = false; 
    4949        } else { 
    5050            $wrapper = ( $template != '' )?$template:$primary; 
     
    5858            if ( in_array( $tax_root, $keys, true ) ) {  
    5959                $taxes[] = $tax;  
    60             } else {  
     60            } else { 
    6161                if ( in_array( 'mcm_'.$tax_root,$keys,true ) ) { 
    6262                    $taxes[] = 'mcm_'.$tax; 
     
    420420    $address = strtolower($address); 
    421421    $coded = ""; 
    422     $unmixedkey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@"; 
     422    $unmixedkey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@-"; 
    423423    $inprogresskey = $unmixedkey; 
    424424    $mixedkey=""; 
  • my-content-management/trunk/my-content-management.php

    r658247 r671945  
    66Author: Joseph C Dolson 
    77Author URI: http://www.joedolson.com 
    8 Version: 1.3.1 
     8Version: 1.3.2 
    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.3.1'; 
     26$mcm_version = '1.3.2'; 
    2727// Enable internationalisation 
    2828load_plugin_textdomain( 'my-content-management',false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );  
     
    242242 
    243243function mcm_get_support_form() { 
     244 
     245echo "<pre>"; 
     246print_r( $GLOBALS['wp_post_types']['mcm_people'] ); 
     247echo "</pre>"; 
     248 
    244249global $current_user, $mcm_version; 
    245250$textdomain = 'my-content-management'; 
  • my-content-management/trunk/my-glossary-filter.php

    r660298 r671945  
    22/* 
    33Plugin Name: My Content Management - Glossary Filter 
    4 Version: 1.3.1 
     4Version: 1.3.2 
    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

    r658247 r671945  
    44Tags: custom post types, post types, faq, testimonials, staff, glossary, sidebars, content management 
    55Requires at least: 3.2.1 
    6 Tested up to: 3.5.0 
     6Tested up to: 3.5.1 
    77License: GPLv2 or later 
    88Stable tag: trunk 
     
    6969== Changelog == 
    7070 
     71= 1.3.2 = 
     72 
     73* Bug fix: hyphens not correctly rendered in email munging. 
     74 
    7175= 1.3.1 = 
    7276 
Note: See TracChangeset for help on using the changeset viewer.