updated plugin Jetpack Protect version 1.3.0

This commit is contained in:
2023-03-17 22:34:13 +00:00
committed by Gitium
parent 19e086d1c4
commit 1e9ac45ec6
183 changed files with 4388 additions and 2345 deletions

View File

@ -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).
## [1.5.22] - 2023-02-20
### Changed
- Minor internal updates.
## [1.5.21] - 2023-01-30
### Changed
- Updated styles for Just in Time Messages (notices) [#27515]
## [1.5.20] - 2022-12-02
### Changed
- Updated package dependencies. [#27688]
@ -138,6 +146,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Packages: Add a basic Jetpack Logo package
[1.5.22]: https://github.com/Automattic/jetpack-logo/compare/v1.5.21...v1.5.22
[1.5.21]: https://github.com/Automattic/jetpack-logo/compare/v1.5.20...v1.5.21
[1.5.20]: https://github.com/Automattic/jetpack-logo/compare/v1.5.19...v1.5.20
[1.5.19]: https://github.com/Automattic/jetpack-logo/compare/v1.5.18...v1.5.19
[1.5.18]: https://github.com/Automattic/jetpack-logo/compare/v1.5.17...v1.5.18

View File

@ -6,7 +6,7 @@
"require": {},
"require-dev": {
"yoast/phpunit-polyfills": "1.0.4",
"automattic/jetpack-changelogger": "^3.2.2"
"automattic/jetpack-changelogger": "^3.3.2"
},
"autoload": {
"classmap": [
@ -17,9 +17,6 @@
"phpunit": [
"./vendor/phpunit/phpunit/phpunit --colors=always"
],
"test-coverage": [
"php -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
],
"test-php": [
"@composer phpunit"
]

View File

@ -64,11 +64,17 @@ class Logo {
/**
* Return string containing the Jetpack logo in a slightly larger format than get_jp_emblem().
*
* @since 1.1.4
* @param bool $logotype Should we use the full logotype (logo + text). Default to false.
* @return string
*/
public function get_jp_emblem_larger() {
public function get_jp_emblem_larger( $logotype = false ) {
$logo_text = $this->get_jp_logo_parts();
return '<svg class="jitm-jp-logo" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" height="32" viewBox="0 0 118 32">' . $logo_text['logo'] . $logo_text['text'] . '</svg>';
return sprintf(
'<svg class="jitm-jp-logo" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" height="32" viewBox="0 0 %1$s 32">%2$s</svg>',
( true === $logotype ? '118' : '32' ),
( true === $logotype ? $logo_text['logo'] . $logo_text['text'] : $logo_text['logo'] )
);
}
/**