updated plugin Jetpack Protect
version 1.4.0
This commit is contained in:
@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.2.19] - 2023-04-10
|
||||
### Added
|
||||
- Add Jetpack Autoloader package suggestion. [#29988]
|
||||
|
||||
## [0.2.18] - 2023-04-04
|
||||
### Changed
|
||||
- Menu icon: update to latest version of the Jetpack logo [#29418]
|
||||
|
||||
## [0.2.17] - 2023-02-20
|
||||
### Changed
|
||||
- Minor internal updates.
|
||||
@ -96,6 +104,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Fixed
|
||||
- Fixing menu visibility issues.
|
||||
|
||||
[0.2.19]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.18...0.2.19
|
||||
[0.2.18]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.17...0.2.18
|
||||
[0.2.17]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.16...0.2.17
|
||||
[0.2.16]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.15...0.2.16
|
||||
[0.2.15]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.14...0.2.15
|
||||
|
@ -7,8 +7,12 @@
|
||||
"require-dev": {
|
||||
"yoast/phpunit-polyfills": "1.0.4",
|
||||
"automattic/jetpack-changelogger": "^3.3.2",
|
||||
"automattic/jetpack-logo": "^1.6.1",
|
||||
"automattic/wordbless": "dev-master"
|
||||
},
|
||||
"suggest": {
|
||||
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/"
|
||||
|
@ -13,7 +13,7 @@ namespace Automattic\Jetpack\Admin_UI;
|
||||
*/
|
||||
class Admin_Menu {
|
||||
|
||||
const PACKAGE_VERSION = '0.2.17';
|
||||
const PACKAGE_VERSION = '0.2.19';
|
||||
|
||||
/**
|
||||
* Whether this class has been initialized
|
||||
@ -65,20 +65,6 @@ class Admin_Menu {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue styles for the top level menu
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function enqueue_style() {
|
||||
wp_enqueue_style(
|
||||
'jetpack-admin-ui',
|
||||
plugin_dir_url( __FILE__ ) . 'css/jetpack-icon.css',
|
||||
array(),
|
||||
self::PACKAGE_VERSION
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback to the admin_menu hook that will register the enqueued menu items
|
||||
*
|
||||
@ -87,16 +73,18 @@ class Admin_Menu {
|
||||
public static function admin_menu_hook_callback() {
|
||||
$can_see_toplevel_menu = true;
|
||||
$jetpack_plugin_present = class_exists( 'Jetpack_React_Page' );
|
||||
$icon = class_exists( '\Automattic\Jetpack\Assets\Logo' )
|
||||
? ( new \Automattic\Jetpack\Assets\Logo() )->get_base64_logo()
|
||||
: 'dashicons-admin-plugins';
|
||||
|
||||
if ( ! $jetpack_plugin_present ) {
|
||||
add_action( 'admin_print_scripts', array( __CLASS__, 'enqueue_style' ) );
|
||||
add_menu_page(
|
||||
'Jetpack',
|
||||
'Jetpack',
|
||||
'read',
|
||||
'jetpack',
|
||||
'__return_null',
|
||||
'div',
|
||||
$icon,
|
||||
3
|
||||
);
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'jetpack';
|
||||
src: url( '../fonts/jetpack/jetpack.eot' );
|
||||
src: url( '../fonts/jetpack/jetpack.eot?#iefix' ) format( 'embedded-opentype' ),
|
||||
url( '../fonts/jetpack/jetpack.woff' ) format( 'woff' ),
|
||||
url( '../fonts/jetpack/jetpack.ttf' ) format( 'truetype' );
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
li.toplevel_page_jetpack .wp-menu-image:before {
|
||||
font-family: 'jetpack' !important;
|
||||
content: '\f100';
|
||||
}
|
Binary file not shown.
@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<!--
|
||||
2017-12-4: Created with FontForge (http://fontforge.org)
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
||||
<metadata>
|
||||
Created by FontForge 20170925 at Mon Dec 4 15:18:51 2017
|
||||
By Michael Arestad
|
||||
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="jetpack" horiz-adv-x="200" >
|
||||
<font-face
|
||||
font-family="jetpack"
|
||||
font-weight="400"
|
||||
font-stretch="normal"
|
||||
units-per-em="512"
|
||||
panose-1="2 0 5 3 0 0 0 0 0 0"
|
||||
ascent="448"
|
||||
descent="-64"
|
||||
bbox="51.2002 -12.7998 460.8 396.8"
|
||||
underline-thickness="25.6"
|
||||
underline-position="-51.2"
|
||||
unicode-range="U+0020-F100"
|
||||
/>
|
||||
<missing-glyph />
|
||||
<glyph glyph-name="space" unicode=" "
|
||||
/>
|
||||
<glyph glyph-name="jetpack-logo__icon" unicode="" horiz-adv-x="512"
|
||||
d="M256 396.8c112.64 0 204.8 -92.1602 204.8 -204.8s-92.1602 -204.8 -204.8 -204.8s-204.8 92.1602 -204.8 204.8s92.1602 204.8 204.8 204.8zM230.4 166.4v179.199l-102.4 -179.199h102.4zM281.6 38.4004l102.4 179.199h-102.4v-179.199z" />
|
||||
</font>
|
||||
</defs></svg>
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
Reference in New Issue
Block a user