Plugin Directory

Changeset 1236823


Ignore:
Timestamp:
09/03/2015 02:07:14 AM (11 years ago)
Author:
dwrippe
Message:

Fixing the contents of the 2.0.1 tag folder (again).

Location:
custom-comment-form-title/tags/2.0.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-comment-form-title/tags/2.0.1/custom-comment-form-title.php

    r1236820 r1236823  
    44Plugin URI: http://custom-comment-form-title.media-cairn.com/
    55Description: Create custom Comment Form Titles for individual posts.
    6 Version: 2.1
     6Version: 2.0.1
    77Author: MediaCairn Design Studio
    88Author URI: http://www.media-cairn.com/
     
    1010*/
    1111
    12 /*  Copyright 2015 MediaCairn Design Studio
     12/*  Copyright 2014 MediaCairn Design Studio
    1313
    1414    This program is free software; you can redistribute it and/or modify
     
    108108add_action( 'add_meta_boxes', 'ccft_add_post_meta_boxes' );
    109109
     110// backwards compatible (before WP 3.0)
     111// add_action( 'admin_init', 'ccft_add_post_meta_boxes', 1 );
     112
    110113/* Do something with the data entered */
    111114add_action( 'save_post', 'ccft_save_post_comment_title_meta' );
     
    160163
    161164  // Do something with $mydata
     165  // either using
    162166  add_post_meta($post_ID, 'ccft_post_comment_title', $mydata, true) or
    163167    update_post_meta($post_ID, 'ccft_post_comment_title', $mydata);
     168  // or a custom table (see Further Reading section below)
    164169}
    165170
     
    171176
    172177/* Filter the post class hook with our custom post class function. */
    173 add_filter( 'comment_form_defaults', 'ccft_post_comment_title', 99 ); // Thanks to Justin Tadlock for a heads up on setting the priority on this.
     178add_filter( 'comment_form_defaults', 'ccft_post_comment_title' );
    174179
    175180/* Framework filters */
    176181$theme_data = wp_get_theme();
    177182$template = $theme_data->Template;
     183
     184// Genesis
     185if( $template = "genesis" ) {
     186    remove_filter( 'genesis_comment_form_args', 'custom_comment_form_args' );
     187    add_filter( 'genesis_comment_form_args', 'ccft_post_comment_title' );
     188}
    178189
    179190// Thematic
  • custom-comment-form-title/tags/2.0.1/readme.txt

    r1236820 r1236823  
    33Tags: comment, comments, comment form, comment form title, post comments, page comments, disqus
    44Requires at least: 3.5
    5 Tested up to: 4.4-alpha
    6 Stable tag: 2.1
     5Tested up to: 4.0
     6Stable tag: 2.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8989== Changelog ==
    9090
    91 = 2.1 =
    92 * Updated priority on comment_form_defaults filter.
    93 * Removed check for Genesis framework (no longer needed with aforementioned priority change).
    94 
    9591= 2.0.1 =
    9692* Added Spanish language file.
     
    114110== Upgrade Notice ==
    115111
    116 = 2.1 =
    117 * Updated priority on custom_form_defaults filter solve theme incompatibility issues.
    118 
    119112= 2.0.1 =
    120113* Added Spanish language file.
Note: See TracChangeset for help on using the changeset viewer.