Changeset 778848
- Timestamp:
- 09/26/2013 03:33:50 PM (13 years ago)
- Location:
- woocommerce-product-faqs
- Files:
-
- 4 edited
- 11 copied
-
tags/1.1.0 (copied) (copied from woocommerce-product-faqs/trunk)
-
tags/1.1.0/README.txt (copied) (copied from woocommerce-product-faqs/trunk/README.txt) (2 diffs)
-
tags/1.1.0/class-woocommerce-faqs.php (copied) (copied from woocommerce-product-faqs/trunk/class-woocommerce-faqs.php) (4 diffs)
-
tags/1.1.0/js/admin.js (copied) (copied from woocommerce-product-faqs/trunk/js/admin.js)
-
tags/1.1.0/js/public.js (copied) (copied from woocommerce-product-faqs/trunk/js/public.js)
-
tags/1.1.0/lang/woocommerce-faqs-ru_RU.mo (copied) (copied from woocommerce-product-faqs/trunk/lang/woocommerce-faqs-ru_RU.mo)
-
tags/1.1.0/lang/woocommerce-faqs-ru_RU.po (copied) (copied from woocommerce-product-faqs/trunk/lang/woocommerce-faqs-ru_RU.po)
-
tags/1.1.0/views/admin.php (copied) (copied from woocommerce-product-faqs/trunk/views/admin.php)
-
tags/1.1.0/views/faq-form.php (copied) (copied from woocommerce-product-faqs/trunk/views/faq-form.php)
-
tags/1.1.0/views/loop-faqs.php (copied) (copied from woocommerce-product-faqs/trunk/views/loop-faqs.php) (1 diff)
-
tags/1.1.0/woocommerce-faqs.php (copied) (copied from woocommerce-product-faqs/trunk/woocommerce-faqs.php) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/class-woocommerce-faqs.php (modified) (4 diffs)
-
trunk/views/loop-faqs.php (modified) (1 diff)
-
trunk/woocommerce-faqs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-product-faqs/tags/1.1.0/README.txt
r768454 r778848 5 5 Requires at least: 3.5.1 6 6 Tested up to: 3.7 7 Stable tag: 1. 0.97 Stable tag: 1.1.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 133 133 134 134 == Changelog == 135 == 1.1.0 == 136 * Fixed comment issues 137 135 138 = 1.0.9 = 136 139 * Admin settings for tab title and priority -
woocommerce-product-faqs/tags/1.1.0/class-woocommerce-faqs.php
r768452 r778848 26 26 * @var string 27 27 */ 28 protected $version = '1. 0.9';28 protected $version = '1.1.0'; 29 29 30 30 /** … … 123 123 // Load plugin text domain 124 124 add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); 125 126 //load upgrade functions 127 add_action('init', array( $this, 'upgrade_actions' ) ); 125 128 126 129 // Add the options page and menu item. … … 235 238 public static function deactivate( $network_wide ) { 236 239 // TODO: Define deactivation functionality here 240 } 241 242 /** 243 * Run upgrade options 244 * 245 * @since 1.1.0 246 * 247 */ 248 function upgrade_actions(){ 249 250 $current_version = get_option( $this->option_prefix . 'plugin_version', '1.0.9' ); 251 252 if($current_version != $this->version){ 253 254 switch ($current_version) { 255 256 case '1.0.9': 257 258 //update comment statuses 259 global $wpdb; 260 261 $wpdb->update($table = $wpdb->posts, $data = array('comment_status'=>'open'), $where = array('post_type'=>$this->post_type), $format = array('%s'), $where_format = array('%s') ); 262 263 break; 264 265 } 266 267 update_option( $this->option_prefix . 'plugin_version', $this->version ); 268 269 } 270 237 271 } 238 272 … … 1325 1359 add_meta_box( $this->post_type . '_product', __( 'FAQ Details', $this->plugin_slug ), array( $this, 'metabox' ), $this->post_type, 'normal', 'high' ); 1326 1360 1327 remove_meta_box( 'commentstatusdiv', $this->post_type, 'normal' ); 1361 //this causes comments to become disabled! 1362 //remove_meta_box( 'commentstatusdiv', $this->post_type, 'normal' ); 1328 1363 1329 1364 } -
woocommerce-product-faqs/tags/1.1.0/views/loop-faqs.php
r759547 r778848 181 181 //faq, or allow unauthorized users to answer 182 182 if( current_user_can( $answer_caps ) && $preview != 'preview' ) { 183 184 comment_form(); 183 $args = array( 184 'id_form' => 'commentform', 185 'id_submit' => 'submit', 186 'title_reply' => __( 'Leave an Answer', $this->plugin_slug ), 187 'title_reply_to' => __( 'Leave an Answer to %s', $this->plugin_slug ), 188 'cancel_reply_link' => __( 'Cancel Answer', $this->plugin_slug ), 189 'label_submit' => __( 'Post Answer', $this->plugin_slug ), 190 191 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Answer', 'noun', $this->plugin_slug ) . 192 '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true">' . 193 '</textarea></p>', 194 195 'must_log_in' => '', 196 197 'logged_in_as' => '', 198 199 'comment_notes_before' => '', 200 201 'comment_notes_after' => '', 202 203 'fields' => apply_filters( 'comment_form_default_fields', array() 204 ), 205 ); 206 comment_form($args); 185 207 186 208 } -
woocommerce-product-faqs/tags/1.1.0/woocommerce-faqs.php
r768452 r778848 13 13 * (Frequently Asked Questions) product-specific section that enables 14 14 * customers to ask questions, get responeses, and see other question threads 15 * Version: 1. 0.915 * Version: 1.1.0 16 16 * Author: Josh Levinson 17 17 * Author URI: http://joshlevinson.me -
woocommerce-product-faqs/trunk/README.txt
r768454 r778848 5 5 Requires at least: 3.5.1 6 6 Tested up to: 3.7 7 Stable tag: 1. 0.97 Stable tag: 1.1.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 133 133 134 134 == Changelog == 135 == 1.1.0 == 136 * Fixed comment issues 137 135 138 = 1.0.9 = 136 139 * Admin settings for tab title and priority -
woocommerce-product-faqs/trunk/class-woocommerce-faqs.php
r768452 r778848 26 26 * @var string 27 27 */ 28 protected $version = '1. 0.9';28 protected $version = '1.1.0'; 29 29 30 30 /** … … 123 123 // Load plugin text domain 124 124 add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); 125 126 //load upgrade functions 127 add_action('init', array( $this, 'upgrade_actions' ) ); 125 128 126 129 // Add the options page and menu item. … … 235 238 public static function deactivate( $network_wide ) { 236 239 // TODO: Define deactivation functionality here 240 } 241 242 /** 243 * Run upgrade options 244 * 245 * @since 1.1.0 246 * 247 */ 248 function upgrade_actions(){ 249 250 $current_version = get_option( $this->option_prefix . 'plugin_version', '1.0.9' ); 251 252 if($current_version != $this->version){ 253 254 switch ($current_version) { 255 256 case '1.0.9': 257 258 //update comment statuses 259 global $wpdb; 260 261 $wpdb->update($table = $wpdb->posts, $data = array('comment_status'=>'open'), $where = array('post_type'=>$this->post_type), $format = array('%s'), $where_format = array('%s') ); 262 263 break; 264 265 } 266 267 update_option( $this->option_prefix . 'plugin_version', $this->version ); 268 269 } 270 237 271 } 238 272 … … 1325 1359 add_meta_box( $this->post_type . '_product', __( 'FAQ Details', $this->plugin_slug ), array( $this, 'metabox' ), $this->post_type, 'normal', 'high' ); 1326 1360 1327 remove_meta_box( 'commentstatusdiv', $this->post_type, 'normal' ); 1361 //this causes comments to become disabled! 1362 //remove_meta_box( 'commentstatusdiv', $this->post_type, 'normal' ); 1328 1363 1329 1364 } -
woocommerce-product-faqs/trunk/views/loop-faqs.php
r759547 r778848 181 181 //faq, or allow unauthorized users to answer 182 182 if( current_user_can( $answer_caps ) && $preview != 'preview' ) { 183 184 comment_form(); 183 $args = array( 184 'id_form' => 'commentform', 185 'id_submit' => 'submit', 186 'title_reply' => __( 'Leave an Answer', $this->plugin_slug ), 187 'title_reply_to' => __( 'Leave an Answer to %s', $this->plugin_slug ), 188 'cancel_reply_link' => __( 'Cancel Answer', $this->plugin_slug ), 189 'label_submit' => __( 'Post Answer', $this->plugin_slug ), 190 191 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Answer', 'noun', $this->plugin_slug ) . 192 '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true">' . 193 '</textarea></p>', 194 195 'must_log_in' => '', 196 197 'logged_in_as' => '', 198 199 'comment_notes_before' => '', 200 201 'comment_notes_after' => '', 202 203 'fields' => apply_filters( 'comment_form_default_fields', array() 204 ), 205 ); 206 comment_form($args); 185 207 186 208 } -
woocommerce-product-faqs/trunk/woocommerce-faqs.php
r768452 r778848 13 13 * (Frequently Asked Questions) product-specific section that enables 14 14 * customers to ask questions, get responeses, and see other question threads 15 * Version: 1. 0.915 * Version: 1.1.0 16 16 * Author: Josh Levinson 17 17 * Author URI: http://joshlevinson.me
Note: See TracChangeset
for help on using the changeset viewer.