Commit ab772d5e authored by Benthe Kuijpers's avatar Benthe Kuijpers
Browse files
parents d2e1a81e 99481b20
...@@ -13,3 +13,6 @@ RewriteRule . /index.php [L] ...@@ -13,3 +13,6 @@ RewriteRule . /index.php [L]
</IfModule> </IfModule>
# END WordPress # END WordPress
php_value upload_max_filesize 256M
php_value post_max_size 256M
...@@ -51,13 +51,13 @@ ...@@ -51,13 +51,13 @@
function read(s, converter) { function read(s, converter) {
var value = config.raw ? s : parseCookieValue(s); var value = config.raw ? s : parseCookieValue(s);
return $.isFunction(converter) ? converter(value) : value; return (typeof converter === 'function') ? converter(value) : value;
} }
var config = $.cookie = function (key, value, options) { var config = $.cookie = function (key, value, options) {
// Write // Write
if (value !== undefined && !$.isFunction(value)) { if (value !== undefined && !(typeof value === 'function')) {
options = $.extend({}, config.defaults, options); options = $.extend({}, config.defaults, options);
if (typeof options.expires === 'number') { if (typeof options.expires === 'number') {
......
...@@ -620,13 +620,9 @@ var knownMenuFields = { ...@@ -620,13 +620,9 @@ var knownMenuFields = {
caption: 'Embedded page ID', caption: 'Embedded page ID',
defaultValue: 'Select page to display', defaultValue: 'Select page to display',
type: 'text', type: 'text',
visible: false, //Displayed on-demand.
addDropdown: 'ws_embedded_page_selector', addDropdown: 'ws_embedded_page_selector',
display: function(menuItem, displayValue, input) { display: function(menuItem, displayValue, input) {
//Only show this field if the "Embed WP page" template is selected.
input.closest('.ws_edit_field').toggle(menuItem.template_id === wsEditorData.embeddedPageTemplateId);
input.prop('readonly', true); input.prop('readonly', true);
var pageId = parseInt(getFieldValue(menuItem, 'embedded_page_id', 0), 10), var pageId = parseInt(getFieldValue(menuItem, 'embedded_page_id', 0), 10),
blogId = parseInt(getFieldValue(menuItem, 'embedded_page_blog_id', 1), 10), blogId = parseInt(getFieldValue(menuItem, 'embedded_page_blog_id', 1), 10),
...@@ -659,6 +655,11 @@ var knownMenuFields = { ...@@ -659,6 +655,11 @@ var knownMenuFields = {
write: function() { write: function() {
//The user cannot directly edit this field. We deliberately ignore writes. //The user cannot directly edit this field. We deliberately ignore writes.
},
visible: function(menuItem) {
//Only show this field if the "Embed WP page" template is selected.
return (menuItem.template_id === wsEditorData.embeddedPageTemplateId);
} }
}), }),
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Plugin Name: Admin Menu Editor Pro Plugin Name: Admin Menu Editor Pro
Plugin URI: http://adminmenueditor.com/ Plugin URI: http://adminmenueditor.com/
Description: Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more. Description: Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
Version: 2.14 Version: 2.14.1
Author: Janis Elsts Author: Janis Elsts
Author URI: http://w-shadow.com/ Author URI: http://w-shadow.com/
Slug: admin-menu-editor-pro Slug: admin-menu-editor-pro
......
...@@ -156,8 +156,9 @@ if ( !class_exists('Puc_v4p10_Plugin_Ui', false) ): ...@@ -156,8 +156,9 @@ if ( !class_exists('Puc_v4p10_Plugin_Ui', false) ):
if ( $shouldCheck ) { if ( $shouldCheck ) {
$update = $this->updateChecker->checkForUpdates(); $update = $this->updateChecker->checkForUpdates();
$status = ($update === null) ? 'no_update' : 'update_available'; $status = ($update === null) ? 'no_update' : 'update_available';
$lastRequestApiErrors = $this->updateChecker->getLastRequestApiErrors();
if ( ($update === null) && !empty($this->lastRequestApiErrors) ) { if ( ($update === null) && !empty($lastRequestApiErrors) ) {
//Some errors are not critical. For example, if PUC tries to retrieve the readme.txt //Some errors are not critical. For example, if PUC tries to retrieve the readme.txt
//file from GitHub and gets a 404, that's an API error, but it doesn't prevent updates //file from GitHub and gets a 404, that's an API error, but it doesn't prevent updates
//from working. Maybe the plugin simply doesn't have a readme. //from working. Maybe the plugin simply doesn't have a readme.
...@@ -169,7 +170,7 @@ if ( !class_exists('Puc_v4p10_Plugin_Ui', false) ): ...@@ -169,7 +170,7 @@ if ( !class_exists('Puc_v4p10_Plugin_Ui', false) ):
'puc-bitbucket-http-error', 'puc-bitbucket-http-error',
); );
foreach ($this->lastRequestApiErrors as $item) { foreach ($lastRequestApiErrors as $item) {
$wpError = $item['error']; $wpError = $item['error'];
/** @var WP_Error $wpError */ /** @var WP_Error $wpError */
if ( !in_array($wpError->get_error_code(), $questionableErrorCodes) ) { if ( !in_array($wpError->get_error_code(), $questionableErrorCodes) ) {
...@@ -180,7 +181,7 @@ if ( !class_exists('Puc_v4p10_Plugin_Ui', false) ): ...@@ -180,7 +181,7 @@ if ( !class_exists('Puc_v4p10_Plugin_Ui', false) ):
if ( $foundCriticalErrors ) { if ( $foundCriticalErrors ) {
$status = 'error'; $status = 'error';
set_site_transient($this->manualCheckErrorTransient, $this->lastRequestApiErrors, 60); set_site_transient($this->manualCheckErrorTransient, $lastRequestApiErrors, 60);
} }
} }
......
...@@ -3,7 +3,7 @@ Contributors: whiteshadow ...@@ -3,7 +3,7 @@ Contributors: whiteshadow
Tags: admin, dashboard, menu, security, wpmu Tags: admin, dashboard, menu, security, wpmu
Requires at least: 4.1 Requires at least: 4.1
Tested up to: 5.7 Tested up to: 5.7
Stable tag: 2.14 Stable tag: 2.14.1
Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more. Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
...@@ -83,6 +83,11 @@ Here are some usage tips and other things that can be good to know when using th ...@@ -83,6 +83,11 @@ Here are some usage tips and other things that can be good to know when using th
[Get the latest version here.](http://adminmenueditor.com/updates/) [Get the latest version here.](http://adminmenueditor.com/updates/)
= 2.14.1 (2021-03-15) =
##### Fixed
* Fixed a bug introduced in version 2.14 where the "Embed WP page" feature would no longer display the field that let you choose the page.
* Fixed a jQuery Migrate warning about isFunction() being deprecated.
= 2.14 (2021-03-08) = = 2.14 (2021-03-08) =
##### Added ##### Added
* Added the ability to create menu headings. Headings are unclickable and can be styled separately from regular menu items. By default, their color and background don't change on hover. You can configure headings to act as collapsible sections. When you click a collapsible heading, it will show/hide all of the menu items between that heading and the next one. * Added the ability to create menu headings. Headings are unclickable and can be styled separately from regular menu items. By default, their color and background don't change on hover. You can configure headings to act as collapsible sections. When you click a collapsible heading, it will show/hide all of the menu items between that heading and the next one.
......
/**
* Fix SVGs not showing correctly as featured images.
*/
#postimagediv .inside .svg img {
width: 100%;
}
/**
* Fix for Gutenberg not showing featured images correctly.
*/
img.components-responsive-wrapper__content[src$=".svg"] {
position: relative;
}
\ No newline at end of file
{
"name": "darylldoyle/safe-svg",
"description": "Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Daryll Doyle",
"homepage": "https://wpsvg.com/"
}
],
"require": {
"php": "^5.6 || ^7.0"
}
}
<?php
class safe_svg_attributes extends \enshrined\svgSanitize\data\AllowedAttributes {
/**
* Returns an array of attributes
*
* @return array
*/
public static function getAttributes() {
/**
* var array Attributes that are allowed.
*/
return apply_filters( 'svg_allowed_attributes', parent::getAttributes() );
}
}
\ No newline at end of file
<?php
class safe_svg_tags extends \enshrined\svgSanitize\data\AllowedTags {
/**
* Returns an array of tags
*
* @return array
*/
public static function getTags() {
/**
* var array Tags that are allowed.
*/
return apply_filters( 'svg_allowed_tags', parent::getTags() );
}
}
\ No newline at end of file
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Safe SVG\n"
"Language: da\n"
#: safe-svg.php:66
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
msgstr "Beklager, kunne denne fil ikke desinficeres, så af sikkerhedsmæssige årsager ikke er uploadet"
#. Plugin Name of the plugin/theme
#:
msgid "Safe SVG"
msgstr "Sikker SVG"
#. Plugin URI of the plugin/theme
#:
msgid "https://wordpress.org/plugins/safe-svg/"
msgstr "https://wordpress.org/plugins/safe-svg/"
#. Description of the plugin/theme
#:
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
msgstr "Tillader SVG uploads i Wordpress og renser SVG før du gemmer det"
#. Author of the plugin/theme
#:
msgid "Daryll Doyle"
msgstr "Daryll Doyle"
#. Author URI of the plugin/theme
#:
msgid "http://enshrined.co.uk"
msgstr "http://enshrined.co.uk"
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Safe SVG\n"
"Language: de\n"
#: safe-svg.php:66
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
msgstr "Leider konnte diese Datei nicht bereinigt, damit aus Sicherheitsgründen nicht hochgeladen wurde sein"
#. Plugin Name of the plugin/theme
#:
msgid "Safe SVG"
msgstr "Safe SVG"
#. Plugin URI of the plugin/theme
#:
msgid "https://wordpress.org/plugins/safe-svg/"
msgstr "https://wordpress.org/plugins/safe-svg/"
#. Description of the plugin/theme
#:
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
msgstr "Ermöglicht SVG Uploads in Wordpress und reinigt die SVG vor dem Speichern"
#. Author of the plugin/theme
#:
msgid "Daryll Doyle"
msgstr "Daryll Doyle"
#. Author URI of the plugin/theme
#:
msgid "http://enshrined.co.uk"
msgstr "http://enshrined.co.uk"
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Safe SVG\n"
"Language: en\n"
#: safe-svg.php:66
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
msgstr "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded "
#. Plugin Name of the plugin/theme
#:
msgid "Safe SVG"
msgstr "Safe SVG "
#. Plugin URI of the plugin/theme
#:
msgid "https://wordpress.org/plugins/safe-svg/"
msgstr "https://wordpress.org/plugins/safe-svg/"
#. Description of the plugin/theme
#:
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
msgstr "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
#. Author of the plugin/theme
#:
msgid "Daryll Doyle"
msgstr "Daryll Doyle"
#. Author URI of the plugin/theme
#:
msgid "http://enshrined.co.uk"
msgstr "http://enshrined.co.uk"
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Safe SVG\n"
"Language: es\n"
#: safe-svg.php:66
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
msgstr "Lo sentimos, este fichero no pudo ser desinfectados por razones de seguridad no fue subido"
#. Plugin Name of the plugin/theme
#:
msgid "Safe SVG"
msgstr "SVG Segura"
#. Plugin URI of the plugin/theme
#:
msgid "https://wordpress.org/plugins/safe-svg/"
msgstr "https://wordpress.org/plugins/safe-svg/"
#. Description of the plugin/theme
#:
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
msgstr "Permite archivos SVG en Wordpress y desinfecta el SVG antes de guardarlo"
#. Author of the plugin/theme
#:
msgid "Daryll Doyle"
msgstr "Daryll Doyle"
#. Author URI of the plugin/theme
#:
msgid "http://enshrined.co.uk"
msgstr "http://enshrined.co.uk"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment