Plugin Directory

Changeset 1236114


Ignore:
Timestamp:
09/02/2015 08:26:35 AM (11 years ago)
Author:
Moisture
Message:

Fix tags being stripped from recurring events.

Location:
am-events/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • am-events/trunk/am-events.php

    r1236069 r1236114  
    44  Plugin URI: http://wordpress.org/extend/plugins/am-events/
    55  Description: Adds a post type for events and a customizable widget for displaying upcoming events.
    6   Version: 1.9.5
     6  Version: 1.9.6
    77  Author: Atte Moisio
    88  Author URI: http://attemoisio.fi
     
    11171117                        );
    11181118                        $new_post_id = wp_insert_post($new_post);
    1119                        
    1120                         wp_set_post_tags($new_post_id, wp_get_post_tags($post_id));
     1119
     1120                        wp_set_post_tags($new_post_id, wp_get_post_tags($post_id, array('fields' => 'ids')), false);
    11211121                        set_post_thumbnail($new_post_id, get_post_thumbnail_id($post_id));
    11221122
     
    11991199                        add_action('save_post', 'am_save_custom_meta');
    12001200                       
    1201                         wp_set_post_tags($id, wp_get_post_tags($post_id));
     1201                        wp_set_post_tags($id, wp_get_post_tags($post_id, array('fields' => 'ids')), false);
    12021202                        set_post_thumbnail($id, get_post_thumbnail_id($post_id));
    12031203                       
     
    13651365        'description' => __('Type for events', 'am-events'),
    13661366        'supports' => array('title', 'editor', 'thumbnail', 'excerpt'),
    1367         'taxonomies' => array('am_event_category', 'am_venue'),
     1367        'taxonomies' => array('am_event_category', 'am_venue', 'post_tag'),
    13681368        'rewrite' => array( 'slug' => get_option('am_rewrite_slug', 'am_event') ),
    13691369    );
    1370    
    1371    
    13721370
    13731371    register_post_type('am_event', $args);
     1372   
     1373    register_taxonomy('post_tag', array('am_event'));
    13741374}
    13751375
  • am-events/trunk/readme.txt

    r1236069 r1236114  
    44Requires at least: 3.3.1
    55Tested up to: 4.3
    6 Stable tag: 1.9.5
     6Stable tag: 1.9.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555
    5656== Changelog ==
     57
     58= 1.9.6 =
     59* Fix tags being stripped from recurring events.
    5760
    5861= 1.9.5 =
     
    128131
    129132== Upgrade Notice ==
     133
     134= 1.9.6 =
     135* Fixes tags being stripped from recurring events.
    130136
    131137= 1.9.5 =
Note: See TracChangeset for help on using the changeset viewer.