Version Description
December 7, 2011 =
Fixed a PHP error when there are no nav menus
Download this release
Release Info
Developer | brandon.wamboldt |
Plugin | WordPress Access Control |
Version | 3.1.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.1.2
- documentation/index.html +6 -0
- readme.txt +9 -1
- wordpress-access-control.php +2 -2
documentation/index.html
CHANGED
@@ -288,6 +288,12 @@
|
|
288 |
|
289 |
<h1 id="changelog">I) Changelog - <a href="#toc">top</a></h1>
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
<p><strong>Version 3.1.1 - December 7, 2011</strong></p>
|
292 |
|
293 |
<ul>
|
288 |
|
289 |
<h1 id="changelog">I) Changelog - <a href="#toc">top</a></h1>
|
290 |
|
291 |
+
<p><strong>Version 3.1.2 - December 7, 2011</strong></p>
|
292 |
+
|
293 |
+
<ul>
|
294 |
+
<li>Fixed a PHP error when there are no nav menus</li>
|
295 |
+
</ul>
|
296 |
+
|
297 |
<p><strong>Version 3.1.1 - December 7, 2011</strong></p>
|
298 |
|
299 |
<ul>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: members, only, plugin, restricted, access, menus, 3.3, wp_nav_menu, nonmembers
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 3.3
|
7 |
-
Stable tag: 3.1.
|
8 |
|
9 |
Restrict pages, posts, custom post types, menus and widgets to members, nonmembers or specific roles and still add to navigation
|
10 |
|
@@ -57,6 +57,10 @@ Please leave a comment at http://brandonwamboldt.ca/plugins/members-only-menu-pl
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
|
|
60 |
= 3.1.1 - December 7, 2011 =
|
61 |
|
62 |
* Fixed a bug that might cause memory issues
|
@@ -148,6 +152,10 @@ Please leave a comment at http://brandonwamboldt.ca/plugins/members-only-menu-pl
|
|
148 |
|
149 |
== Upgrade Notice ==
|
150 |
|
|
|
|
|
|
|
|
|
151 |
= 3.1.1 - December 7, 2011 =
|
152 |
|
153 |
* Fixed a bug that might cause memory issues
|
4 |
Tags: members, only, plugin, restricted, access, menus, 3.3, wp_nav_menu, nonmembers
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 3.1.2
|
8 |
|
9 |
Restrict pages, posts, custom post types, menus and widgets to members, nonmembers or specific roles and still add to navigation
|
10 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 3.1.2 - December 7, 2011 =
|
61 |
+
|
62 |
+
* Fixed a PHP error when there are no nav menus
|
63 |
+
|
64 |
= 3.1.1 - December 7, 2011 =
|
65 |
|
66 |
* Fixed a bug that might cause memory issues
|
152 |
|
153 |
== Upgrade Notice ==
|
154 |
|
155 |
+
= 3.1.2 - December 7, 2011 =
|
156 |
+
|
157 |
+
* Fixed a PHP error when there are no nav menus
|
158 |
+
|
159 |
= 3.1.1 - December 7, 2011 =
|
160 |
|
161 |
* Fixed a bug that might cause memory issues
|
wordpress-access-control.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://brandonwamboldt.ca/plugins/members-only-menu-plugin/
|
5 |
* Author: Brandon Wamboldt
|
6 |
* Author URI: http://brandonwamboldt.ca/
|
7 |
-
* Version: 3.1.
|
8 |
* Description: This plugin is a powerful tool which gives you fine grained control over your pages and posts (and custom post types), allowing you to restrict a page, post, or custom post type to members, non-members, or even specific roles. You can customize how these pages and posts show up in search results, where users are directed when they visit them, and much more. <strong>You can even make your entire blog members only!</strong>.
|
9 |
*/
|
10 |
|
@@ -886,7 +886,7 @@ class WordPressAccessControl
|
|
886 |
{
|
887 |
global $_wp_registered_nav_menus;
|
888 |
|
889 |
-
$original = $_wp_registered_nav_menus;
|
890 |
|
891 |
foreach ( $original as $location => $label ) {
|
892 |
$_wp_registered_nav_menus[$location . '_wpac'] = $label . ' - Members Only';
|
4 |
* Plugin URI: http://brandonwamboldt.ca/plugins/members-only-menu-plugin/
|
5 |
* Author: Brandon Wamboldt
|
6 |
* Author URI: http://brandonwamboldt.ca/
|
7 |
+
* Version: 3.1.2
|
8 |
* Description: This plugin is a powerful tool which gives you fine grained control over your pages and posts (and custom post types), allowing you to restrict a page, post, or custom post type to members, non-members, or even specific roles. You can customize how these pages and posts show up in search results, where users are directed when they visit them, and much more. <strong>You can even make your entire blog members only!</strong>.
|
9 |
*/
|
10 |
|
886 |
{
|
887 |
global $_wp_registered_nav_menus;
|
888 |
|
889 |
+
$original = (array) $_wp_registered_nav_menus;
|
890 |
|
891 |
foreach ( $original as $location => $label ) {
|
892 |
$_wp_registered_nav_menus[$location . '_wpac'] = $label . ' - Members Only';
|