Version Description
- 2019-01-03 =
- BUG FIX: Fixed issue where the PMPro dashboard and reports pages would appear blank if certain other plugins were active.
Download this release
Release Info
Developer | strangerstudios |
Plugin | Paid Memberships Pro |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- adminpages/dashboard.php +50 -58
- adminpages/reports.php +23 -34
- paid-memberships-pro.php +2 -2
- readme.txt +4 -1
adminpages/dashboard.php
CHANGED
@@ -4,66 +4,58 @@
|
|
4 |
* @since 2.0
|
5 |
*/
|
6 |
|
7 |
-
/**
|
8 |
-
* Add all the meta boxes for the dashboard.
|
9 |
-
*/
|
10 |
-
function pmpro_dashboard_custom_meta_boxes() {
|
11 |
-
add_meta_box(
|
12 |
-
'pmpro_dashboard_welcome',
|
13 |
-
__( 'Welcome to Paid Memberships Pro' ),
|
14 |
-
'pmpro_dashboard_welcome_callback',
|
15 |
-
'toplevel_page_pmpro-dashboard',
|
16 |
-
'normal'
|
17 |
-
);
|
18 |
-
add_meta_box(
|
19 |
-
'pmpro_dashboard_report_sales',
|
20 |
-
__( 'Sales and Revenue' ),
|
21 |
-
'pmpro_report_sales_widget',
|
22 |
-
'toplevel_page_pmpro-dashboard',
|
23 |
-
'advanced'
|
24 |
-
);
|
25 |
-
add_meta_box(
|
26 |
-
'pmpro_dashboard_report_membership_stats',
|
27 |
-
__( 'Membership Stats' ),
|
28 |
-
'pmpro_report_memberships_widget',
|
29 |
-
'toplevel_page_pmpro-dashboard',
|
30 |
-
'advanced'
|
31 |
-
);
|
32 |
-
add_meta_box(
|
33 |
-
'pmpro_dashboard_report_logins',
|
34 |
-
__( 'Visits, Views, and Logins' ),
|
35 |
-
'pmpro_report_login_widget',
|
36 |
-
'toplevel_page_pmpro-dashboard',
|
37 |
-
'advanced'
|
38 |
-
);
|
39 |
-
add_meta_box(
|
40 |
-
'pmpro_dashboard_report_recent_members',
|
41 |
-
__( 'Recent Members' ),
|
42 |
-
'pmpro_dashboard_report_recent_members_callback',
|
43 |
-
'toplevel_page_pmpro-dashboard',
|
44 |
-
'side'
|
45 |
-
);
|
46 |
-
add_meta_box(
|
47 |
-
'pmpro_dashboard_report_recent_orders',
|
48 |
-
__( 'Recent Orders' ),
|
49 |
-
'pmpro_dashboard_report_recent_orders_callback',
|
50 |
-
'toplevel_page_pmpro-dashboard',
|
51 |
-
'side'
|
52 |
-
);
|
53 |
-
add_meta_box(
|
54 |
-
'pmpro_dashboard_news_updates',
|
55 |
-
__( 'Paid Memberships Pro News and Updates' ),
|
56 |
-
'pmpro_dashboard_news_updates_callback',
|
57 |
-
'toplevel_page_pmpro-dashboard',
|
58 |
-
'side'
|
59 |
-
);
|
60 |
-
}
|
61 |
-
add_action( 'add_meta_boxes', 'pmpro_dashboard_custom_meta_boxes', 10, 2 );
|
62 |
-
|
63 |
/**
|
64 |
-
*
|
65 |
*/
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
/**
|
69 |
* Load the Paid Memberships Pro dashboard-area header
|
4 |
* @since 2.0
|
5 |
*/
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
/**
|
8 |
+
* Add all the meta boxes for the dashboard.
|
9 |
*/
|
10 |
+
add_meta_box(
|
11 |
+
'pmpro_dashboard_welcome',
|
12 |
+
__( 'Welcome to Paid Memberships Pro' ),
|
13 |
+
'pmpro_dashboard_welcome_callback',
|
14 |
+
'toplevel_page_pmpro-dashboard',
|
15 |
+
'normal'
|
16 |
+
);
|
17 |
+
add_meta_box(
|
18 |
+
'pmpro_dashboard_report_sales',
|
19 |
+
__( 'Sales and Revenue' ),
|
20 |
+
'pmpro_report_sales_widget',
|
21 |
+
'toplevel_page_pmpro-dashboard',
|
22 |
+
'advanced'
|
23 |
+
);
|
24 |
+
add_meta_box(
|
25 |
+
'pmpro_dashboard_report_membership_stats',
|
26 |
+
__( 'Membership Stats' ),
|
27 |
+
'pmpro_report_memberships_widget',
|
28 |
+
'toplevel_page_pmpro-dashboard',
|
29 |
+
'advanced'
|
30 |
+
);
|
31 |
+
add_meta_box(
|
32 |
+
'pmpro_dashboard_report_logins',
|
33 |
+
__( 'Visits, Views, and Logins' ),
|
34 |
+
'pmpro_report_login_widget',
|
35 |
+
'toplevel_page_pmpro-dashboard',
|
36 |
+
'advanced'
|
37 |
+
);
|
38 |
+
add_meta_box(
|
39 |
+
'pmpro_dashboard_report_recent_members',
|
40 |
+
__( 'Recent Members' ),
|
41 |
+
'pmpro_dashboard_report_recent_members_callback',
|
42 |
+
'toplevel_page_pmpro-dashboard',
|
43 |
+
'side'
|
44 |
+
);
|
45 |
+
add_meta_box(
|
46 |
+
'pmpro_dashboard_report_recent_orders',
|
47 |
+
__( 'Recent Orders' ),
|
48 |
+
'pmpro_dashboard_report_recent_orders_callback',
|
49 |
+
'toplevel_page_pmpro-dashboard',
|
50 |
+
'side'
|
51 |
+
);
|
52 |
+
add_meta_box(
|
53 |
+
'pmpro_dashboard_news_updates',
|
54 |
+
__( 'Paid Memberships Pro News and Updates' ),
|
55 |
+
'pmpro_dashboard_news_updates_callback',
|
56 |
+
'toplevel_page_pmpro-dashboard',
|
57 |
+
'side'
|
58 |
+
);
|
59 |
|
60 |
/**
|
61 |
* Load the Paid Memberships Pro dashboard-area header
|
adminpages/reports.php
CHANGED
@@ -19,39 +19,28 @@ if ( ! empty( $_REQUEST[ 'report' ] ) ) {
|
|
19 |
<a class="button button-primary" href="<?php echo admin_url("admin.php?page=pmpro-reports");?>"><?php _e( 'Back to Reports Dashboard', 'paid-memberships-pro' ); ?></a>
|
20 |
<?php
|
21 |
} else {
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
$title,
|
32 |
-
'pmpro_report_' . $report . '_widget',
|
33 |
-
'memberships_page_pmpro-reports',
|
34 |
-
'advanced'
|
35 |
-
);
|
36 |
-
}
|
37 |
-
|
38 |
-
foreach ( $pieces[1] as $report => $title ) {
|
39 |
-
add_meta_box(
|
40 |
-
'pmpro_report_' . $report,
|
41 |
-
$title,
|
42 |
-
'pmpro_report_' . $report . '_widget',
|
43 |
-
'memberships_page_pmpro-reports',
|
44 |
-
'side'
|
45 |
-
);
|
46 |
-
}
|
47 |
}
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
55 |
<form id="pmpro-reports-form" method="post" action="admin-post.php">
|
56 |
|
57 |
<div class="dashboard-widgets-wrap">
|
@@ -87,8 +76,8 @@ if ( ! empty( $_REQUEST[ 'report' ] ) ) {
|
|
87 |
|
88 |
<?php
|
89 |
}
|
|
|
90 |
/**
|
91 |
* Load the Paid Memberships Pro dashboard-area footer
|
92 |
*/
|
93 |
-
require_once(dirname(__FILE__) . "/admin_footer.php");
|
94 |
-
?>
|
19 |
<a class="button button-primary" href="<?php echo admin_url("admin.php?page=pmpro-reports");?>"><?php _e( 'Back to Reports Dashboard', 'paid-memberships-pro' ); ?></a>
|
20 |
<?php
|
21 |
} else {
|
22 |
+
$pieces = array_chunk( $pmpro_reports, ceil( count( $pmpro_reports ) / 2 ), true );
|
23 |
+
foreach ( $pieces[0] as $report => $title ) {
|
24 |
+
add_meta_box(
|
25 |
+
'pmpro_report_' . $report,
|
26 |
+
$title,
|
27 |
+
'pmpro_report_' . $report . '_widget',
|
28 |
+
'memberships_page_pmpro-reports',
|
29 |
+
'advanced'
|
30 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
+
|
33 |
+
foreach ( $pieces[1] as $report => $title ) {
|
34 |
+
add_meta_box(
|
35 |
+
'pmpro_report_' . $report,
|
36 |
+
$title,
|
37 |
+
'pmpro_report_' . $report . '_widget',
|
38 |
+
'memberships_page_pmpro-reports',
|
39 |
+
'side'
|
40 |
+
);
|
41 |
+
}
|
42 |
+
|
43 |
+
?>
|
44 |
<form id="pmpro-reports-form" method="post" action="admin-post.php">
|
45 |
|
46 |
<div class="dashboard-widgets-wrap">
|
76 |
|
77 |
<?php
|
78 |
}
|
79 |
+
|
80 |
/**
|
81 |
* Load the Paid Memberships Pro dashboard-area footer
|
82 |
*/
|
83 |
+
require_once(dirname(__FILE__) . "/admin_footer.php");
|
|
paid-memberships-pro.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Paid Memberships Pro
|
4 |
* Plugin URI: https://www.paidmembershipspro.com
|
5 |
* Description: The most complete member management and membership subscriptions plugin for WordPress.
|
6 |
-
* Version: 2.0
|
7 |
* Author: Stranger Studios
|
8 |
* Author URI: https://www.strangerstudios.com
|
9 |
* Text Domain: paid-memberships-pro
|
@@ -16,7 +16,7 @@
|
|
16 |
*/
|
17 |
|
18 |
// version constant
|
19 |
-
define( 'PMPRO_VERSION', '2.0' );
|
20 |
define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
|
21 |
define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
|
22 |
|
3 |
* Plugin Name: Paid Memberships Pro
|
4 |
* Plugin URI: https://www.paidmembershipspro.com
|
5 |
* Description: The most complete member management and membership subscriptions plugin for WordPress.
|
6 |
+
* Version: 2.0.1
|
7 |
* Author: Stranger Studios
|
8 |
* Author URI: https://www.strangerstudios.com
|
9 |
* Text Domain: paid-memberships-pro
|
16 |
*/
|
17 |
|
18 |
// version constant
|
19 |
+
define( 'PMPRO_VERSION', '2.0.1' );
|
20 |
define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
|
21 |
define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
|
22 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: strangerstudios
|
|
3 |
Tags: membership, memberships, member, members, ecommerce, e-commerce, paypal, stripe, braintree, authorize.net, payflow, restrict access, restrict content, directory
|
4 |
Requires at least: 4
|
5 |
Tested up to: 5.0.2
|
6 |
-
Stable tag: 2.0
|
7 |
|
8 |
Get Paid with Paid Memberships Pro: The most complete member management and membership subscriptions plugin for your WordPress site.
|
9 |
|
@@ -129,6 +129,9 @@ Not sure? You can find out by doing a bit a research.
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
132 |
= 2.0 - 2018-12-31 =
|
133 |
* SECURITY: Fixing how we escape things in the Memberships report SQL queries.
|
134 |
* BUG FIX: Fixed issue where code in the Stripe gateway was cancelling old subscriptions early if users renewed with a different gateway.
|
3 |
Tags: membership, memberships, member, members, ecommerce, e-commerce, paypal, stripe, braintree, authorize.net, payflow, restrict access, restrict content, directory
|
4 |
Requires at least: 4
|
5 |
Tested up to: 5.0.2
|
6 |
+
Stable tag: 2.0.1
|
7 |
|
8 |
Get Paid with Paid Memberships Pro: The most complete member management and membership subscriptions plugin for your WordPress site.
|
9 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 2.0.1 - 2019-01-03 =
|
133 |
+
* BUG FIX: Fixed issue where the PMPro dashboard and reports pages would appear blank if certain other plugins were active.
|
134 |
+
|
135 |
= 2.0 - 2018-12-31 =
|
136 |
* SECURITY: Fixing how we escape things in the Memberships report SQL queries.
|
137 |
* BUG FIX: Fixed issue where code in the Stripe gateway was cancelling old subscriptions early if users renewed with a different gateway.
|