Version Description
Download this release
Release Info
| Developer | yikesitskevin |
| Plugin | |
| Version | 6.3.11 |
| Comparing to | |
| See all releases | |
Code changes from version 6.3.10 to 6.3.11
admin/class-yikes-inc-easy-mailchimp-extender-admin.php
CHANGED
|
@@ -1634,31 +1634,34 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
| 1634 |
$excluded_post_types = array( 'attachment' , 'revision' , 'nav_menu_item', 'shop_order', 'shop_order_refund', 'custom_css', 'customize_changeset' );
|
| 1635 |
$excluded_post_types = apply_filters( 'yikes-mailchimp-excluded-redirect-post-types', $excluded_post_types );
|
| 1636 |
|
| 1637 |
-
|
| 1638 |
foreach( $post_types as $registered_post_type ) {
|
| 1639 |
|
| 1640 |
-
// exclude a few built in custom post types
|
| 1641 |
if( ! in_array( $registered_post_type, $excluded_post_types ) ) {
|
| 1642 |
|
| 1643 |
-
//
|
| 1644 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1645 |
'order' => 'ASC',
|
| 1646 |
'orderby' => 'post_title',
|
| 1647 |
-
|
| 1648 |
-
|
| 1649 |
-
'numberposts' => -1
|
| 1650 |
-
) );
|
| 1651 |
|
| 1652 |
-
|
| 1653 |
-
|
|
|
|
| 1654 |
?>
|
| 1655 |
-
|
| 1656 |
<?php
|
| 1657 |
-
|
| 1658 |
-
|
| 1659 |
-
|
| 1660 |
?>
|
| 1661 |
-
|
| 1662 |
<?php
|
| 1663 |
}
|
| 1664 |
}
|
| 1634 |
$excluded_post_types = array( 'attachment' , 'revision' , 'nav_menu_item', 'shop_order', 'shop_order_refund', 'custom_css', 'customize_changeset' );
|
| 1635 |
$excluded_post_types = apply_filters( 'yikes-mailchimp-excluded-redirect-post-types', $excluded_post_types );
|
| 1636 |
|
| 1637 |
+
// loop over registered post types, and query!
|
| 1638 |
foreach( $post_types as $registered_post_type ) {
|
| 1639 |
|
| 1640 |
+
// exclude a few built in custom post types and any defined by the filter
|
| 1641 |
if( ! in_array( $registered_post_type, $excluded_post_types ) ) {
|
| 1642 |
|
| 1643 |
+
// Grab only the post IDs - in the past we've created timeout issues on some servers with lots of posts
|
| 1644 |
+
$wp_query_args = array(
|
| 1645 |
+
'post_status' => 'publish',
|
| 1646 |
+
'post_type' => $registered_post_type,
|
| 1647 |
+
'posts_per_page' => -1,
|
| 1648 |
+
'fields' => 'ids',
|
| 1649 |
'order' => 'ASC',
|
| 1650 |
'orderby' => 'post_title',
|
| 1651 |
+
);
|
| 1652 |
+
$wp_query_result = new WP_Query( $wp_query_args );
|
|
|
|
|
|
|
| 1653 |
|
| 1654 |
+
$post_ids = ! empty( $wp_query_result->posts ) ? $wp_query_result->posts : array();
|
| 1655 |
+
|
| 1656 |
+
if ( ! empty ( $post_ids ) ) {
|
| 1657 |
?>
|
| 1658 |
+
<optgroup label="<?php echo ucwords( str_replace( '_' , ' ' , $registered_post_type ) ); ?>">
|
| 1659 |
<?php
|
| 1660 |
+
foreach( $post_ids as $post_id ) {
|
| 1661 |
+
?><option <?php selected( $redirect_page , $post_id ); ?> value="<?php echo $post_id; ?>"><?php echo get_the_title( $post_id ) ?></option><?php
|
| 1662 |
+
}
|
| 1663 |
?>
|
| 1664 |
+
</optgroup>
|
| 1665 |
<?php
|
| 1666 |
}
|
| 1667 |
}
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=dona
|
|
| 4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.7.3
|
| 7 |
-
Stable tag: 6.3.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -250,6 +250,9 @@ Below you'll find a complete list of the hooks and filters available in Easy For
|
|
| 250 |
|
| 251 |
== Changelog ==
|
| 252 |
|
|
|
|
|
|
|
|
|
|
| 253 |
= Easy Forms for MailChimp 6.3.10 - March 21st, 2017 =
|
| 254 |
* Added a filter to customize the options in the states' dropdown. You can now add your own states/provinces, or remove the default ones. Use `yikes-mailchimp-state-province-list`
|
| 255 |
* Added a filter to customize the behavior of the zip code field. There are now around 20 different countries that the zip code field will be displayed for. Use the filter `yikes-mailchimp-countries-with-zip` to add/remove.
|
| 4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.7.3
|
| 7 |
+
Stable tag: 6.3.11
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 250 |
|
| 251 |
== Changelog ==
|
| 252 |
|
| 253 |
+
= Easy Forms for MailChimp 6.3.11 - March 23rd, 2017 =
|
| 254 |
+
* Optimized our query that fetches all posts/pages/CPTs - we now fetch only the IDs - this should prevent issues such as memory overflow or timeout
|
| 255 |
+
|
| 256 |
= Easy Forms for MailChimp 6.3.10 - March 21st, 2017 =
|
| 257 |
* Added a filter to customize the options in the states' dropdown. You can now add your own states/provinces, or remove the default ones. Use `yikes-mailchimp-state-province-list`
|
| 258 |
* Added a filter to customize the behavior of the zip code field. There are now around 20 different countries that the zip code field will be displayed for. Use the filter `yikes-mailchimp-countries-with-zip` to add/remove.
|
yikes-inc-easy-mailchimp-extender.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Easy Forms for MailChimp
|
| 4 |
* Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
|
| 5 |
* Description: The ultimate MailChimp WordPress plugin. Easily build <strong>unlimited forms for your MailChimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">MailChimp API key</a>.
|
| 6 |
-
* Version: 6.3.
|
| 7 |
* Author: YIKES, Inc.
|
| 8 |
* Author URI: https://www.yikesplugins.com/
|
| 9 |
* License: GPL-3.0+
|
|
@@ -42,7 +42,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
| 42 |
* @since 6.1.3
|
| 43 |
*/
|
| 44 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
| 45 |
-
define( 'YIKES_MC_VERSION' , '6.3.
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
| 3 |
* Plugin Name: Easy Forms for MailChimp
|
| 4 |
* Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
|
| 5 |
* Description: The ultimate MailChimp WordPress plugin. Easily build <strong>unlimited forms for your MailChimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">MailChimp API key</a>.
|
| 6 |
+
* Version: 6.3.11
|
| 7 |
* Author: YIKES, Inc.
|
| 8 |
* Author URI: https://www.yikesplugins.com/
|
| 9 |
* License: GPL-3.0+
|
| 42 |
* @since 6.1.3
|
| 43 |
*/
|
| 44 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
| 45 |
+
define( 'YIKES_MC_VERSION' , '6.3.11' );
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
