Changeset 1236823
- Timestamp:
- 09/03/2015 02:07:14 AM (11 years ago)
- Location:
- custom-comment-form-title/tags/2.0.1
- Files:
-
- 2 edited
-
custom-comment-form-title.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-comment-form-title/tags/2.0.1/custom-comment-form-title.php
r1236820 r1236823 4 4 Plugin URI: http://custom-comment-form-title.media-cairn.com/ 5 5 Description: Create custom Comment Form Titles for individual posts. 6 Version: 2. 16 Version: 2.0.1 7 7 Author: MediaCairn Design Studio 8 8 Author URI: http://www.media-cairn.com/ … … 10 10 */ 11 11 12 /* Copyright 201 5MediaCairn Design Studio12 /* Copyright 2014 MediaCairn Design Studio 13 13 14 14 This program is free software; you can redistribute it and/or modify … … 108 108 add_action( 'add_meta_boxes', 'ccft_add_post_meta_boxes' ); 109 109 110 // backwards compatible (before WP 3.0) 111 // add_action( 'admin_init', 'ccft_add_post_meta_boxes', 1 ); 112 110 113 /* Do something with the data entered */ 111 114 add_action( 'save_post', 'ccft_save_post_comment_title_meta' ); … … 160 163 161 164 // Do something with $mydata 165 // either using 162 166 add_post_meta($post_ID, 'ccft_post_comment_title', $mydata, true) or 163 167 update_post_meta($post_ID, 'ccft_post_comment_title', $mydata); 168 // or a custom table (see Further Reading section below) 164 169 } 165 170 … … 171 176 172 177 /* 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.178 add_filter( 'comment_form_defaults', 'ccft_post_comment_title' ); 174 179 175 180 /* Framework filters */ 176 181 $theme_data = wp_get_theme(); 177 182 $template = $theme_data->Template; 183 184 // Genesis 185 if( $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 } 178 189 179 190 // Thematic -
custom-comment-form-title/tags/2.0.1/readme.txt
r1236820 r1236823 3 3 Tags: comment, comments, comment form, comment form title, post comments, page comments, disqus 4 4 Requires at least: 3.5 5 Tested up to: 4. 4-alpha6 Stable tag: 2. 15 Tested up to: 4.0 6 Stable tag: 2.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 89 == Changelog == 90 90 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 95 91 = 2.0.1 = 96 92 * Added Spanish language file. … … 114 110 == Upgrade Notice == 115 111 116 = 2.1 =117 * Updated priority on custom_form_defaults filter solve theme incompatibility issues.118 119 112 = 2.0.1 = 120 113 * Added Spanish language file.
Note: See TracChangeset
for help on using the changeset viewer.