Skip to content

Commit 6a4139e

Browse files
committed
Release v3.4
1 parent 95612be commit 6a4139e

4 files changed

Lines changed: 53 additions & 60 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22

3-
## _(in-progress)_
3+
## 3.4 _(2020-06-27)_
4+
5+
### Highlights:
6+
7+
This recommended release adds the ability to hide the "My Sites" icon, prevents output of plugin-specific settings styles on other admin pages, omits the `type` attribute for `style` tag for themes that support 'html5', updates the plugin framework, adds a TODO.md file, updates a few URLs to be HTTPS, expands unit testing, updates compatibility to be WP 4.9 through 5.4+, and more.
8+
9+
### Details:
10+
411
* New: Add ability to trim "My Sites" icon in admin bar
512
* New: Add HTML5 compliance by omitting `type` attribute when the theme supports 'html5'
613
* Change: Prevent output of plugin-page specific CSS elsewhere

‎admin-trim-interface.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Plugin Name: Admin Trim Interface
4-
* Version: 3.3.1
4+
* Version: 3.4
55
* Plugin URI: https://coffee2code.com/wp-plugins/admin-trim-interface/
66
* Author: Scott Reilly
77
* Author URI: https://coffee2code.com/
@@ -18,7 +18,7 @@
1818
*
1919
* @package Admin_Trim_Interface
2020
* @author Scott Reilly
21-
* @version 3.3.1
21+
* @version 3.4
2222
*/
2323

2424
/*
@@ -79,7 +79,7 @@ public static function get_instance() {
7979
* Constructor
8080
*/
8181
protected function __construct() {
82-
parent::__construct( '3.3.1', 'admin-trim-interface', 'c2c', __FILE__, array( 'settings_page' => 'themes' ) );
82+
parent::__construct( '3.4', 'admin-trim-interface', 'c2c', __FILE__, array( 'settings_page' => 'themes' ) );
8383
register_activation_hook( __FILE__, array( __CLASS__, 'activation' ) );
8484
self::$instance = $this;
8585
}

‎readme.txt‎

Lines changed: 41 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ License: GPLv2 or later
66
License URI: https://www.gnu.org/licenses/gpl-2.0.html
77
Requires at least: 4.9
88
Tested up to: 5.4
9-
Stable tag: 3.3.1
9+
Stable tag: 3.4
1010

1111
Customize the WordPress admin pages by selectively removing interface elements on a per-user basis.
1212

@@ -63,6 +63,43 @@ This plugin does not prevent access to the admin dashboard; it merely provides t
6363

6464
== Changelog ==
6565

66+
= 3.4 (2020-06-27) =
67+
68+
### Highlights:
69+
70+
This recommended release adds the ability to hide the "My Sites" icon, prevents output of plugin-specific settings styles on other admin pages, omits the `type` attribute for `style` tag for themes that support 'html5', updates the plugin framework, adds a TODO.md file, updates a few URLs to be HTTPS, expands unit testing, updates compatibility to be WP 4.9 through 5.4+, and more.
71+
72+
### Details:
73+
74+
* New: Add ability to trim "My Sites" icon in admin bar
75+
* New: Add HTML5 compliance by omitting `type` attribute when the theme supports 'html5'
76+
* Change: Prevent output of plugin-page specific CSS elsewhere
77+
* Change: Discontinue handling for contextual help text added via deprecated filter `contextual_help`
78+
* Change: Update plugin framework to 050
79+
* Allow a hash entry to literally have '0' as a value without being entirely omitted when saved
80+
* Output donation markup using `printf()` rather than using string concatenation
81+
* Update copyright date (2020)
82+
* Note compatibility through WP 5.4+
83+
* Drop compatibility with version of WP older than 4.9
84+
* New: Add TODO.md and move existing TODO list from top of main plugin file into it
85+
* Change: Refactor handling of dynamic CSS rules and ensure they output properly indented
86+
* Change: Adjust some CSS formatting (add second colon for `::before` and spaces around `>`)
87+
* Change: Adjust output spacing for CSS
88+
* Change: Note compatibility through WP 5.4+
89+
* Change: Drop compatibility for version of WP older than 4.9
90+
* Change: Add missing text domain from a few string translation calls
91+
* Change: Remove unnecessary numbering of sole placeholder in string
92+
* Change: Update links to coffee2code.com to be HTTPS
93+
* Change: Update legend image
94+
* Change: Update screenshot images
95+
* Unit tests:
96+
* New: Add tests for `add_css()`, `admin_init()`, `explain_nonce()`, `show_admin_notices()`, `show_legend_image()`
97+
* New: Add test for setting name
98+
* New: Add helper `set_current_screen()` for setting the current screen, defaulting to plugin's setting page
99+
* Change: Store plugin instance in test object to simplify referencing it
100+
* Change: Update tests for default hooks, removing a duplicate and adding 2 that were missing
101+
* Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests (and delete commented-out code)
102+
66103
= 3.3.1 (2019-12-16) =
67104
* Unit tests:
68105
* Change: Update unit test install script and bootstrap to use latest WP unit test repo
@@ -86,65 +123,14 @@ This plugin does not prevent access to the admin dashboard; it merely provides t
86123
* Change: Update License URI to be HTTPS
87124
* Change: Split paragraph in README.md's "Support" section into two
88125

89-
= 3.2 (2018-06-15) =
90-
* Fix: Show admin notices on plugin's setting page
91-
* New: Add basic unit tests
92-
* Change: Update plugin framework to 048
93-
* 048:
94-
* When resetting options, delete the option rather than setting it with default values
95-
* Prevent double "Settings reset" admin notice upon settings reset
96-
* 047:
97-
* Don't save default setting values to database on install
98-
* Change "Cheatin', huh?" error messages to "Something went wrong.", consistent with WP core
99-
* Note compatibility through WP 4.9+
100-
* Drop compatibility with version of WP older than 4.7
101-
* 046:
102-
* Fix `reset_options()` to reference instance variable `$options`
103-
* Note compatibility through WP 4.7+
104-
* Update copyright date (2017)
105-
* 045:
106-
* Ensure `reset_options()` resets values saved in the database
107-
* 044:
108-
* Add `reset_caches()` to clear caches and memoized data. Use it in `reset_options()` and `verify_config()`.
109-
* Add `verify_options()` with logic extracted from `verify_config()` for initializing default option attributes.
110-
* Add `add_option()` to add a new option to the plugin's configuration.
111-
* Add filter 'sanitized_option_names' to allow modifying the list of whitelisted option names.
112-
* Change: Refactor `get_option_names()`.
113-
* 043:
114-
* Disregard invalid lines supplied as part of hash option value.
115-
* 042:
116-
* Update `disable_update_check()` to check for HTTP and HTTPS for plugin update check API URL.
117-
* Translate "Donate" in footer message.
118-
* Note compatibility through WP 4.5.
119-
* 041:
120-
* For a setting that is of datatype array, ensure its default value is an array.
121-
* Make `verify_config()` public.
122-
* Use `<p class="description">` for input field help text instead of custom styled span.
123-
* Remove output of markup for adding icon to setting page header.
124-
* Remove styling for .c2c-input-help.
125-
* Add braces around the few remaining single line conditionals.
126-
* New: Add README.md
127-
* New: Add LICENSE file
128-
* Change: Give settings checkboxes more width so checkboxes don't always flow below their labels
129-
* Change: Improve responsiveness of settings page
130-
* Change: Store setting name in constant
131-
* Change: Update session expiration error message to sync with one that WP core uses
132-
* Change: Switch to outputting markup with `printf()`
133-
* Change: (Hardening) Sanitize screenshot URL before output (for future-proofing)
134-
* Change: Make legend image's title and alt text translatable
135-
* Change: Minor code reformatting
136-
* Change: Add GitHub link to readme
137-
* Change: Note compatibility through WP 4.9+
138-
* Change: Drop compatibility with versions of WP older than 4.7
139-
* Change: Update copyright date (2018)
140-
* Change: Update installation instruction to prefer built-in installer over .zip file
141-
* Change: Fix changelog entry for v3.1 for proper rendering in Plugin Directory
142-
143126
_Full changelog is available in [CHANGELOG.md](https://github.com/coffee2code/admin-trim-interface/blob/master/CHANGELOG.md)._
144127

145128

146129
== Upgrade Notice ==
147130

131+
= 3.4 =
132+
Recommended update: added ability to hide "My Sites" icon, prevented output of styles for plugin's settings on other admin pages, updated plugin framework, added TODO.md file, updated a few URLs to be HTTPS, expanded unit testing, updated compatibility to be WP 4.9-5.4+, and more.
133+
148134
= 3.3.1 =
149135
Trivial update: modernized unit tests and noted compatibility through WP 5.3+
150136

‎tests/test-admin-trim-interface.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function test_plugin_framework_version() {
112112
}
113113

114114
public function test_get_version() {
115-
$this->assertEquals( '3.3.1', $this->obj->version() );
115+
$this->assertEquals( '3.4', $this->obj->version() );
116116
}
117117

118118
public function test_instance_object_is_returned() {

0 commit comments

Comments
 (0)