From 740f9b315befb63b43f9964553056c6beb4875fe Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 10 Aug 2016 16:48:16 -0400 Subject: [PATCH] Turn off the survey script commenting it out in functions --- functions.php | 19 ++++++++++--------- style.css | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index b9598d0..98a346a 100644 --- a/functions.php +++ b/functions.php @@ -84,6 +84,7 @@ function glm_site_scripts() wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css'); if(is_front_page()) { } + /* if ( isset( $post ) && in_array( $post->ID, array( 3193, 3194, 3195, 3196, 3197, 3200, 3309, 3303, 3315, 3307 ) ) ) { wp_enqueue_script( 'discover-survey', @@ -93,7 +94,7 @@ function glm_site_scripts() true ); } - + */ } function is_post_type($type){ @@ -199,8 +200,8 @@ function remove_admin_bar() { } /* - * If the current user is not an admin and is a member, - * return 'sunrise' as the default admin color + * If the current user is not an admin and is a member, + * return 'sunrise' as the default admin color */ add_filter('get_user_option_admin_color', function($result) { if (!current_user_can('administrator') && current_user_can("glm_members_member")) { @@ -233,16 +234,16 @@ if (!function_exists('is_in_tree')) { /** * Function Name: front_end_login_fail. * Added for: GLM Member DB front-end login failure custom redirection. - * Description: This redirects the failed login to the custom login page + * Description: This redirects the failed login to the custom login page * instead of default login page with a modified url **/ add_action( 'wp_login_failed', 'front_end_login_fail' ); function front_end_login_fail( $username ) { // Getting URL of the login page - $referrer = $_SERVER['HTTP_REFERER']; + $referrer = $_SERVER['HTTP_REFERER']; // if there's a valid referrer, and it's not the default log-in screen if( !empty( $referrer ) && !strstr( $referrer,'wp-login' ) && !strstr( $referrer,'wp-admin' ) ) { - wp_redirect( get_permalink( get_option('glm_members_database_option_members_only_id') ) . "?login=failed" ); + wp_redirect( get_permalink( get_option('glm_members_database_option_members_only_id') ) . "?login=failed" ); exit; } } @@ -250,7 +251,7 @@ function front_end_login_fail( $username ) { /** * Function Name: front_end_blank_credentials. * Added for: GLM Member DB front-end login failure custom redirection. - * Description: This redirects to the custom login page if user name or + * Description: This redirects to the custom login page if user name or * password is empty with a modified url **/ add_action( 'authenticate', 'front_end_blank_credentials', 1, 3); @@ -259,12 +260,12 @@ function front_end_blank_credentials( $login, $username, $password ) { // Getting URL of the login page $referrer = $_SERVER['HTTP_REFERER']; // if there's a valid referrer, and it's not the default log-in screen - if( !empty( $referrer ) && !strstr( $referrer,'wp-login' ) && !strstr( $referrer,'wp-admin' ) ) { + if( !empty( $referrer ) && !strstr( $referrer,'wp-login' ) && !strstr( $referrer,'wp-admin' ) ) { if( $username == "" || $password == "" ){ wp_redirect( get_permalink( get_option('glm_members_database_option_members_only_id') ) . "?login=empty" ); exit; } } -} +} ?> diff --git a/style.css b/style.css index 68047e3..d903639 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: DiscoverKalamazoo Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for DiscoverKalamazoo -Version: 1.1.4 +Version: 1.1.5 */ -- 2.17.1