This commit is contained in:
commit
bbec303755
@ -1,5 +1,11 @@
|
|||||||
# Notice Manager Changelog
|
# Notice Manager Changelog
|
||||||
|
|
||||||
|
## 0.22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Do not collect `.theme-info` notices.
|
||||||
|
- Fix `vendor/autoload` include path.
|
||||||
|
|
||||||
## 0.21
|
## 0.21
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "abuyoyo/notice-manager",
|
"name": "abuyoyo/notice-manager",
|
||||||
"description": "Manage notices on WordPress admin pages. Adds 'Notices' screen-meta-link.",
|
"description": "Manage notices on WordPress admin pages. Adds 'Notices' screen-meta-link.",
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"version": "0.21",
|
"version": "0.22",
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
"type": "vcs",
|
"type": "vcs",
|
||||||
|
|||||||
@ -22,6 +22,12 @@ var NoticeManager = (function ($, document) {
|
|||||||
|
|
||||||
let selectors_all = selectors_notice.concat(selectors_warning, selectors_error)
|
let selectors_all = selectors_notice.concat(selectors_warning, selectors_error)
|
||||||
|
|
||||||
|
let selectors_skip = [
|
||||||
|
".inline",
|
||||||
|
".below-h2",
|
||||||
|
".theme-info .notice",
|
||||||
|
]
|
||||||
|
|
||||||
// wait function used with autoCollapse
|
// wait function used with autoCollapse
|
||||||
let wait = function (ms) {
|
let wait = function (ms) {
|
||||||
var dfd = $.Deferred()
|
var dfd = $.Deferred()
|
||||||
@ -89,7 +95,7 @@ var NoticeManager = (function ($, document) {
|
|||||||
// get all notices that are not explicitly marked as `.inline` or `.below-h2`
|
// get all notices that are not explicitly marked as `.inline` or `.below-h2`
|
||||||
// we add .update-nag.inline for WordPress Update notice
|
// we add .update-nag.inline for WordPress Update notice
|
||||||
notices = $( selectors_all.join(', ') )
|
notices = $( selectors_all.join(', ') )
|
||||||
.not(".inline, .below-h2")
|
.not(selectors_skip.join(', '))
|
||||||
.add("div.update-nag")
|
.add("div.update-nag")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: Notice Manager
|
* Plugin Name: Notice Manager
|
||||||
* Description: Manage notices on WordPress admin pages. Adds 'Notices' screen-meta-link.
|
* Description: Manage notices on WordPress admin pages. Adds 'Notices' screen-meta-link.
|
||||||
* Version: 0.21
|
* Version: 0.22
|
||||||
* Author: abuyoyo
|
* Author: abuyoyo
|
||||||
* Author URI: https://github.com/abuyoyo/
|
* Author URI: https://github.com/abuyoyo/
|
||||||
* Plugin URI: https://github.com/abuyoyo/notice-manager
|
* Plugin URI: https://github.com/abuyoyo/notice-manager
|
||||||
@ -12,8 +12,8 @@ defined( 'ABSPATH' ) || die( 'No soup for you!' );
|
|||||||
|
|
||||||
use WPHelper\PluginCore;
|
use WPHelper\PluginCore;
|
||||||
|
|
||||||
if ( file_exists( 'vendor/autoload.php' ) )
|
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) )
|
||||||
require_once 'vendor/autoload.php';
|
require_once __DIR__ . '/vendor/autoload.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bootstrap plugin and admin page (Tools > Notice Manager)
|
* Bootstrap plugin and admin page (Tools > Notice Manager)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user