-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Plugin URI: http://katz.co/gravity-forms-addons/ | ||
Description: Turn <a href="http://katz.si/gravityforms" rel="nofollow">Gravity Forms</a> into a great WordPress directory...and more! | ||
Author: Katz Web Services, Inc. | ||
Version: 3.5.4.1 | ||
Version: 3.5.4.2 | ||
Author URI: http://www.katzwebservices.com | ||
Copyright 2014 Katz Web Services, Inc. (email: [email protected]) | ||
|
@@ -32,7 +32,7 @@ class GFDirectory { | |
|
||
private static $path = "gravity-forms-addons/gravity-forms-addons.php"; | ||
private static $slug = "gravity-forms-addons"; | ||
private static $version = "3.5.4.1"; | ||
private static $version = "3.5.4.2"; | ||
private static $min_gravityforms_version = "1.5"; | ||
|
||
public static function directory_defaults($args = array()) { | ||
|
@@ -127,7 +127,7 @@ public static function plugins_loaded() { | |
|
||
include_once(WP_PLUGIN_DIR . '/' . basename(dirname( __FILE__ )) .'/edit-form.php'); | ||
include_once(WP_PLUGIN_DIR . '/' . basename(dirname( __FILE__ )) .'/admin.php'); | ||
include_once(WP_PLUGIN_DIR . '/' . basename(dirname( __FILE__ )) .'/change-lead-creator.php'); | ||
include_once(WP_PLUGIN_DIR . '/' . basename(dirname( __FILE__ )) .'/gravity-forms-lead-creator.php'); | ||
|
||
if(in_array(RG_CURRENT_PAGE, array("gf_entries", "admin.php", "admin-ajax.php"))) { | ||
self::globals_get_approved_column(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Plugin URI: http://katz.co/gravity-forms-addons/ | ||
Description: This simple addon allows users with Entry-editing capabilities to change who a <a href="http://katz.si/gravityforms" rel="nofollow">Gravity Forms</a> lead is assigned to. | ||
Author: Katz Web Services, Inc. | ||
Version: 3.5.4.1 | ||
Version: 3.5.4.2 | ||
Author URI: http://www.katzwebservices.com | ||
Copyright 2014 Katz Web Services, Inc. (email: [email protected]) | ||
|
@@ -31,14 +31,14 @@ | |
if(!function_exists('kws_gf_change_entry_creator_form')) { | ||
function kws_gf_change_entry_creator_form($form_id, $lead) { | ||
if(GFCommon::current_user_can_any("gravityforms_edit_entries")) { | ||
|
||
//@since 3.5.3 - filter possible creators | ||
$users = apply_filters( 'kws_gf_entry_creator_users', '', $form_id ); | ||
|
||
if( empty( $users ) ) { | ||
$users = get_users(); | ||
} | ||
|
||
$output = '<label for="change_created_by">'; | ||
$output .= __('Change Entry Creator:', 'gravity-forms-addons'); | ||
$output .= '</label> | ||
|
@@ -51,7 +51,7 @@ function kws_gf_change_entry_creator_form($form_id, $lead) { | |
echo $output; | ||
} | ||
} | ||
} | ||
} | ||
|
||
add_action("gform_after_update_entry", 'kws_gf_update_entry_creator', 10, 2); | ||
if(!function_exists('kws_gf_update_entry_creator')) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters