Version Description
- Fixed duplicate header bug found on some systems
Download this release
Release Info
Developer | dgewirtz |
Plugin | My Private Site |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- admin/main.php +0 -1
- css/adminstyles.css +34 -5
- jonradio-private-site.php +1 -1
- readme.txt +5 -2
- util/utilities5.php +0 -19
admin/main.php
CHANGED
@@ -28,7 +28,6 @@ function my_private_site_admin_main_menu() {
|
|
28 |
'tab_group' => 'my_private_site_tab_set',
|
29 |
'icon_url' => 'dashicons-lock',
|
30 |
);
|
31 |
-
my_private_site_cmb2_remove_primary_save_button();
|
32 |
|
33 |
// 'tab_group' property is supported in > 2.4.0.
|
34 |
if (version_compare(CMB2_VERSION, '2.4.0')) {
|
28 |
'tab_group' => 'my_private_site_tab_set',
|
29 |
'icon_url' => 'dashicons-lock',
|
30 |
);
|
|
|
31 |
|
32 |
// 'tab_group' property is supported in > 2.4.0.
|
33 |
if (version_compare(CMB2_VERSION, '2.4.0')) {
|
css/adminstyles.css
CHANGED
@@ -15,12 +15,41 @@
|
|
15 |
grid-template-columns: 1fr 1fr 1fr;
|
16 |
grid-gap: 2em;
|
17 |
}
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
-
|
24 |
-
|
25 |
}
|
26 |
|
|
|
|
|
|
15 |
grid-template-columns: 1fr 1fr 1fr;
|
16 |
grid-gap: 2em;
|
17 |
}
|
18 |
+
|
19 |
+
|
20 |
+
/* Fix header issue */
|
21 |
+
.option-my_private_site_tab_main input#submit-cmb.button.button-primary {
|
22 |
+
display : none;
|
23 |
+
}
|
24 |
+
|
25 |
+
.option-my_private_site_tab_site_privacy input#submit-cmb.button.button-primary {
|
26 |
+
display : none;
|
27 |
+
}
|
28 |
+
|
29 |
+
.option-my_private_site_tab_landing_page input#submit-cmb.button.button-primary {
|
30 |
+
display : none;
|
31 |
+
}
|
32 |
+
|
33 |
+
.option-my_private_site_tab_selective_content input#submit-cmb.button.button-primary {
|
34 |
+
display : none;
|
35 |
+
}
|
36 |
+
|
37 |
+
.option-my_private_site_tab_public_pages input#submit-cmb.button.button-primary {
|
38 |
+
display : none;
|
39 |
+
}
|
40 |
+
|
41 |
+
.option-my_private_site_tab_membership input#submit-cmb.button.button-primary {
|
42 |
+
display : none;
|
43 |
+
}
|
44 |
+
|
45 |
+
.option-my_private_site_tab_addons input#submit-cmb.button.button-primary {
|
46 |
+
display : none;
|
47 |
}
|
48 |
|
49 |
+
.option-my_private_site_tab_licenses input#submit-cmb.button.button-primary {
|
50 |
+
display : none;
|
51 |
}
|
52 |
|
53 |
+
.option-my_private_site_tab_advanced input#submit-cmb.button.button-primary {
|
54 |
+
display : none;
|
55 |
+
}
|
jonradio-private-site.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: My Private Site
|
4 |
Plugin URI: http://zatzlabs.com/plugins/
|
5 |
Description: Easily secure posts, pages, or your entire WordPress site by requiring visitors to login.
|
6 |
-
Version: 3.0.
|
7 |
Author: David Gewirtz
|
8 |
Author URI: http://zatzlabs.com/plugins/
|
9 |
License: GPLv2
|
3 |
Plugin Name: My Private Site
|
4 |
Plugin URI: http://zatzlabs.com/plugins/
|
5 |
Description: Easily secure posts, pages, or your entire WordPress site by requiring visitors to login.
|
6 |
+
Version: 3.0.2
|
7 |
Author: David Gewirtz
|
8 |
Author URI: http://zatzlabs.com/plugins/
|
9 |
License: GPLv2
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dgewirtz
|
|
3 |
Donate link: http://zatzlabs.com/lab-notes/
|
4 |
Tags: login, visibility, private, security, plugin, pages, page, posts, post
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -90,6 +90,9 @@ Whenever you change your WordPress Permalinks (Settings-Permalinks in Admin pane
|
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
93 |
= 3.0.1 =
|
94 |
* Minor bug fixes
|
95 |
* Added uninstall telemetry
|
3 |
Donate link: http://zatzlabs.com/lab-notes/
|
4 |
Tags: login, visibility, private, security, plugin, pages, page, posts, post
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 3.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
90 |
|
91 |
== Changelog ==
|
92 |
|
93 |
+
= 3.0.2 =
|
94 |
+
* Fixed duplicate header bug found on some systems
|
95 |
+
|
96 |
= 3.0.1 =
|
97 |
* Minor bug fixes
|
98 |
* Added uninstall telemetry
|
util/utilities5.php
CHANGED
@@ -88,25 +88,6 @@ function my_private_site_cmb_options_page_tabs($cmb_options) {
|
|
88 |
return $tabs;
|
89 |
}
|
90 |
|
91 |
-
function my_private_site_cmb2_remove_primary_save_button() {
|
92 |
-
// hack to fix media library hang
|
93 |
-
// this should make sure this only runs on a My Private Site tab
|
94 |
-
if(isset($_REQUEST["page"])) {
|
95 |
-
$the_page = $_REQUEST["page"];
|
96 |
-
$len = strlen("my_private_site_");
|
97 |
-
if(substr($the_page, 0, $len) === "my_private_site_") {
|
98 |
-
?>
|
99 |
-
<style type="text/css" media="screen">
|
100 |
-
input#submit-cmb.button.button-primary {
|
101 |
-
display: none;
|
102 |
-
}
|
103 |
-
</style>
|
104 |
-
<?php
|
105 |
-
}
|
106 |
-
}
|
107 |
-
|
108 |
-
}
|
109 |
-
|
110 |
// set up filter to pre-load field values from My Private Site database
|
111 |
// from: https://github.com/CMB2/CMB2/wiki/Tips-&-Tricks#override-the-data-storage-location-for-a-cmb2-box
|
112 |
function my_private_site_preload_cmb2_field_filter($field_id, $handler_function_name) {
|
88 |
return $tabs;
|
89 |
}
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
// set up filter to pre-load field values from My Private Site database
|
92 |
// from: https://github.com/CMB2/CMB2/wiki/Tips-&-Tricks#override-the-data-storage-location-for-a-cmb2-box
|
93 |
function my_private_site_preload_cmb2_field_filter($field_id, $handler_function_name) {
|