Skip to content

Commit 102be2c

Browse files
committed
Version 1.0.3
1 parent 669d5fe commit 102be2c

32 files changed

+1121
-1261
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
The Wp My Admin Bar Plugin expands on the default Wordpress Admin Bar, adding 3 new custom menus, the ability to show / hide every feature on the Admin Bar, and even the Admin Bar itself.
44

5+
-- Current Plugin Version: 1.0.3
56
-- Requires PHP Version 5.4+ or higher!
67

7-
Project is now on [Github](https://github.com/tribalNerd/wp-my-admin-bar)
8-
98
## Overview
109

1110
The 'Wp My Admin Bar' Plugin expands on the default Wordpress Admin Bar. Adding three new custom menus (My Sites, My Cache & My Tools), along with the ability to show / hide every feature on the Admin Bar, and even the Admin Bar itself.
@@ -20,7 +19,8 @@ Works on both Standalone Wordpress Installs and Multisite Networks.
2019
* My Cache: Allows for quick access to selected Cache Plugins.
2120
* My Tools: Web tools for WP Developers and Bloggers.
2221

23-
* Other Features Include:
22+
Other Features Include:
23+
* Mobile / Portable Device Friendly
2424
* Remove the Wordpress Logo from the Admin Bar.
2525
* Remove the Howdy Dropdown, disable the dropdown, or remove features within the dropdown.
2626
* Disable the dropdown on the Howdy menu.
@@ -44,7 +44,7 @@ From the Wordpress Plugin Admin, search for: WP My Admin Bar
4444
* Access the Settings Menu > My Admin Bar menu link to setup the Admin Bar.
4545

4646

47-
:: Frequently Asked Questions:
47+
### Frequently Asked Questions:
4848
--------
4949

5050
= Q) Which Wordpress Setups does the WP My Admin Bar work with? =
@@ -88,14 +88,18 @@ A) No, not until you update the Network Admin Settings directly.
8888
A) Yes.
8989

9090

91-
:: Change Log
91+
### Change Log
9292
--------
93-
Release
93+
9494
= 1.0.3 =
9595
- Moved the activation, deactivation, uninstall hooks to wp-my-admin-bar.php
9696
- Moved all option get/set methods to \WPMyAdminBar\Options
9797
- Adjusted Admin, Hooks, MyCache, MySites, & My Tools to new Options location & methods
9898
- Set a Network message in \WPMyAdminBar\Admin\Templates\content.php
99+
- Moved Site & Network notices and plugin links from AdminBar.php to Admin.php
100+
- Created new updateNewSite() method in \WPMyAdminBar\Admin\Templates\Admin
101+
- Modified method name get_option to getOption, adjusted in radios.php template
102+
- Improved the PSR1-4 Standards within everything
99103

100104
= 1.0.2 =
101105
- Added in PHP Version Compare

autoloader.php

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,43 @@
66
* @copyright Copyright (c) 2012-2015, Chris Winters
77
* @link http://technerdia.com/projects/adminbar/plugin.html
88
* @license http://www.gnu.org/licenses/gpl.html
9-
* @version 1.0.0
9+
* @version 1.0.3
1010
*/
11-
if( count( get_included_files() ) == 1 ){ exit(); }
11+
if (count(get_included_files()) == 1){ exit(); }
1212

1313
/**
1414
* Register Autoloader
1515
*
1616
* @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md
1717
*
1818
* @param string $class The fully-qualified class name.
19+
*
1920
* @return void
2021
*/
21-
spl_autoload_register( function ( $class )
22-
{
22+
spl_autoload_register(function ( $class ) {
2323
// project-specific namespace prefix
2424
$prefix = 'WPMyAdminBar\\';
2525

2626
// base directory for the namespace prefix
27-
$base_dir = WPMAB_PATH_CLASSES .'/';
27+
$base_dir = WPMAB_PATH_CLASSES . '/';
2828

2929
// does the class use the namespace prefix?
30-
$len = strlen( $prefix );
31-
if ( strncmp( $prefix, $class, $len ) !== 0 )
32-
{
30+
$len = strlen($prefix);
31+
if (strncmp($prefix, $class, $len) !== 0) {
3332
// no, move to the next registered autoloader
3433
return;
3534
}
3635

3736
// get the relative class name
38-
$relative_class = substr( $class, $len );
37+
$relative_class = substr($class, $len);
3938

4039
// replace the namespace prefix with the base directory, replace namespace
4140
// separators with directory separators in the relative class name, append
4241
// with .php
43-
$file = $base_dir . str_replace( '\\', '/', $relative_class ) . '.php';
42+
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
4443

4544
// if the file exists, require it
46-
if ( file_exists( $file ) )
47-
{
45+
if (file_exists($file)) {
4846
require $file;
4947
}
50-
} );
48+
} );

lang/WPMyAdminBar-en_US.mo

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)