From 6ff5703d1c73088bece625b79da9247f39c22b30 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 8 May 2014 02:54:34 +1000 Subject: [PATCH] Fix issue saving new venues 0.8.5 --- includes/admin/class-sp-admin-taxonomies.php | 13 +++++-------- readme.txt | 3 +++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/admin/class-sp-admin-taxonomies.php b/includes/admin/class-sp-admin-taxonomies.php index a40924a8..8b0b2529 100644 --- a/includes/admin/class-sp-admin-taxonomies.php +++ b/includes/admin/class-sp-admin-taxonomies.php @@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) { * Handles taxonomies in admin * * @class SP_Admin_Taxonomies - * @version 0.7 + * @version 0.8.5 * @package SportsPress/Admin * @category Class * @author ThemeBoy @@ -22,8 +22,8 @@ class SP_Admin_Taxonomies { // Add form add_action( 'sp_venue_add_form_fields', array( $this, 'add_venue_fields' ) ); add_action( 'sp_venue_edit_form_fields', array( $this, 'edit_venue_fields' ), 10, 1 ); - add_action( 'edited_sp_venue', array( $this, 'save_venue_fields' ), 10, 2 ); - add_action( 'create_sp_venue', array( $this, 'save_venue_fields' ), 10, 2 ); + add_action( 'edited_sp_venue', array( $this, 'save_venue_fields' ), 10, 1 ); + add_action( 'create_sp_venue', array( $this, 'save_venue_fields' ), 10, 1 ); // Add columns add_filter( 'manage_edit-sp_venue_columns', array( $this, 'venue_columns' ) ); @@ -72,9 +72,8 @@ class SP_Admin_Taxonomies { * * @access public * @param mixed $term Term (category) being edited - * @param mixed $taxonomy Taxonomy of the term being edited */ - public function edit_venue_fields( $term, $taxonomy ) { + public function edit_venue_fields( $term ) { $t_id = $term->term_id; $term_meta = get_option( "taxonomy_$t_id" ); ?> @@ -104,11 +103,9 @@ class SP_Admin_Taxonomies { * * @access public * @param mixed $term_id Term ID being saved - * @param mixed $tt_id - * @param mixed $taxonomy Taxonomy of the term being saved * @return void */ - public function save_venue_fields( $term_id, $tt_id ) { + public function save_venue_fields( $term_id ) { if ( isset( $_POST['term_meta'] ) ) { $t_id = $term_id; $term_meta = get_option( "taxonomy_$t_id" ); diff --git a/readme.txt b/readme.txt index 76dcd27f..8c5f810d 100644 --- a/readme.txt +++ b/readme.txt @@ -120,6 +120,9 @@ Yes, CSV importers are included with the plugin. Go to Tools > Import and choose == Changelog == += 0.8.5 = +* Fix - Issue saving new venues. + = 0.8.4 = * Feature - Add option to limit number of teams per event. * Feature - Show venue option in Countdown widget.