Skip to content

Commit

Permalink
6.4.0
Browse files Browse the repository at this point in the history
- Moved error log file into a new folder
(uploads/yikes-log/yikes-easy-mailchimp-error-log.php), Closes issue
#749
- Removed v2 endpoint classes (issue #742)
- Removed Chimp Chatter page (Account page) (issue #742)
- Moved Account details sidebar from Account page to the Manage Lists
page (issue #742)
- Removed the account details dashboard widget
- Removed the Welcome Menu (the page you're redirected to after
installing/upgrading the plugin) (issue #746)
- Removed some unused CSS from admin styles (closes issue #750)
- Fixed some bad UX issues with scheduling a form (closes issue #737)
- Removed all inline JS (except reCAPTCHA) from
process_form_shortcode.php. These functions now live in the form
submission helpers file. Also deleted the deprecated file. (closes issue
#640)
- Moved the changelog from the readme into a new changelog.txt file.
Also removed the filters and hooks section from the readme. (Closes
issue #748)
- Added a filter, `yikes-mailchimp-dashboard-widgets-enabled`,
controlling whether the dashboard widgets load.
  • Loading branch information
Kevin Utz committed Mar 1, 2018
1 parent 5f278e3 commit 374387b
Show file tree
Hide file tree
Showing 24 changed files with 1,326 additions and 2,005 deletions.
41 changes: 11 additions & 30 deletions admin/class-yikes-inc-easy-mailchimp-extender-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,21 @@ public function parse_mailchimp_default_tag( $default_tag ) {
* is used to clear the data out of our php file.
*/
public function yikes_easy_mailchimp_clear_error_log() {

// Get our error log class
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();

// file put contents $returned error + other data
if( file_exists( YIKES_MC_PATH . 'includes/error_log/yikes-easy-mailchimp-error-log.php' ) ) {
$clear_log = file_put_contents(
YIKES_MC_PATH . 'includes/error_log/yikes-easy-mailchimp-error-log.php',
''
);
if( $clear_log === false ) {
if ( file_exists( $error_logging->error_log_file_path ) ) {

$clear_log = file_put_contents( $error_logging->error_log_file_path, '' );

if ( $clear_log === false ) {

// redirect the user to the manage forms page, display error message
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings&section=debug-settings&error-log-cleared=false' ) ) );
} else {

// redirect the user to the manage forms page, display confirmation
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings&section=debug-settings&error-log-cleared=true' ) ) );
}
Expand Down Expand Up @@ -925,21 +930,6 @@ public function register_admin_pages() {
*/
do_action( 'yikes-mailchimp-menu' );


/* Easy MailChimp Account Overview */
if ( get_option( 'yikes-mc-api-validation' ) == 'valid_api_key' ) {
/* Easy MailChimp Settings */
add_submenu_page(
'yikes-inc-easy-mailchimp',
__( 'Account', 'yikes-inc-easy-mailchimp-extender' ),
__( 'Account', 'yikes-inc-easy-mailchimp-extender' ),
apply_filters( 'yikes-mailchimp-user-role-access', 'manage_options' ),
'yikes-inc-easy-mailchimp-account-overview',
array( $this, 'generateAccountDetailsPage' )
);
}


/* Easy MailChimp Settings */
add_submenu_page(
'yikes-inc-easy-mailchimp',
Expand Down Expand Up @@ -1041,15 +1031,6 @@ function generateManageListsPage() {
require_once YIKES_MC_PATH . 'admin/partials/menu/manage-lists.php'; // include our lists page
}

/**
* Generate Us Easy MailChimp Account Details Page
*
* @since 1.0.0
*/
function generateAccountDetailsPage() {
require_once YIKES_MC_PATH . 'admin/partials/menu/account-details.php'; // include our account details page
}

/**
* Generate Us Easy MailChimp Support Page
*
Expand Down
158 changes: 24 additions & 134 deletions admin/css/yikes-inc-easy-mailchimp-extender-admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion admin/css/yikes-inc-easy-mailchimp-extender-admin.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 374387b

Please sign in to comment.