Skip to content

Commit

Permalink
Version 1.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrommen committed Jul 30, 2017
1 parent 0fa07c6 commit a2afee2
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

-

## [1.2.0] - 2017-07-30

WordPress.org release.

## [1.1.1] - 2017-07-23

### Fixed
Expand Down Expand Up @@ -61,7 +65,8 @@ Initial release.

----

[Unreleased]: https://github.com/tfrommen/Dobby/compare/v1.1.1...HEAD
[Unreleased]: https://github.com/tfrommen/Dobby/compare/v1.2.0...HEAD
[1.2.0]: https://github.com/tfrommen/Dobby/compare/v1.1.1...v1.2.0
[1.1.1]: https://github.com/tfrommen/Dobby/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/tfrommen/Dobby/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/tfrommen/Dobby/compare/v1.0.0...v1.0.1
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
],
"support": {
"issues": "https://github.com/tfrommen/Dobby/issues",
"forum": "https://wordpress.org/support/plugin/wp-dobby/",
"source": "https://github.com/tfrommen/Dobby"
},
"require": {
Expand Down
12 changes: 6 additions & 6 deletions dobby.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php # -*- coding: utf-8 -*-
/*
* Plugin Name: Dobby
* Plugin URI: https://github.com/tfrommen/Dobby/
* Plugin URI: https://wordpress.org/plugins/wp-dobby/
* Description: Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.
* Author: Thorsten Frommen
* Author URI: https://tfrommen.de
* Version: 1.1.1
* Text Domain: dobby
* Version: 1.2.0
* Text Domain: wp-dobby
* License: MIT
*/

Expand Down Expand Up @@ -56,12 +56,12 @@ function bootstrap() {
return;
}

load_plugin_textdomain( 'dobby' );
load_plugin_textdomain( 'wp-dobby' );

$button = '<button class="button dobby-button">' . __( 'Reveal', 'dobby' ) . '</button>';
$button = '<button class="button dobby-button">' . __( 'Reveal', 'wp-dobby' ) . '</button>';

/* translators: 1: MAGIC, 2: <button> tag to reveal admin notices */
$message = __( '%1$s Dobby took care of your admin notices. %2$s', 'dobby' );
$message = __( '%1$s Dobby took care of your admin notices. %2$s', 'wp-dobby' );

printf(
'<div id="dobby" class="notice hide-if-js"><p>%s</p></div><div class="dobby-closet hide-if-js">%s</div>',
Expand Down
51 changes: 51 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
=== Dobby ===
Contributors: tfrommen
Tags: admin, notices
Requires at least: 3.1.0
Tested up to: 4.8
Stable tag: v1.2.0

Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.

== Description ==

Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.

= Contribution =

To **contribute** to this plugin, please see its <a href="https://github.com/tfrommen/Dobby" target="_blank">**GitHub repository**</a>.

If you have a feature request, or if you have developed the feature already, please feel free to use the Issues and/or Pull Requests section.

Of course, you can also provide me with <a href="https://translate.wordpress.org/projects/wp-plugins/wp-dobby" target="_blank">translations</a> if you would like to use the plugin in another not yet included language.

== Installation ==

This plugin requires **PHP 5.4**.

1. Upload the `wp-dobby` folder to the `/wp-content/plugins/` directory on your web server.
1. Activate the plugin through the _Plugins_ menu in WordPress.
1. See only a single admin notice, if at all.

== Changelog ==

= 1.2.0 =
* WordPress.org release.

= 1.1.1 =
* Only ignore images for export (e.g., the generated ZIP file).

= 1.1.0 =
* Add `\tfrommen\Dobby\FILTER_THRESHOLD` to filter the minimum number of admin notices required for Dobby to take action.
* Add ... MAGIC.
* Make Dobby reveal the captured admin notices once and for all instead of toggling them.
* Make Dobby pick up the according notice level based on what admin notices he captured—error wins over warning, otherwise it is an info.
* Make Dobby also capture admin notices with only the `error` or `updated` class.

= 1.0.1 =
* Move `load_plugin_textdomain()` call to where it actually is needed.
* Add missing `Text Domain` information in plugin header.
* Fix typos.

= 1.0.0 =
* Initial release.

0 comments on commit a2afee2

Please sign in to comment.