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
<?php <?php
/** /**
* The base configuration for WordPress * The base configuration for WordPress
* *
* The wp-config.php creation script uses this file during the * The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can * installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values. * copy this file to "wp-config.php" and fill in the values.
* *
* This file contains the following configurations: * This file contains the following configurations:
* *
* * MySQL settings * * MySQL settings
* * Secret keys * * Secret keys
* * Database table prefix * * Database table prefix
* * ABSPATH * * ABSPATH
* *
* @link https://wordpress.org/support/article/editing-wp-config-php/ * @link https://wordpress.org/support/article/editing-wp-config-php/
* *
* @package WordPress * @package WordPress
*/ */
// ** MySQL settings - You can get this info from your web host ** // // ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */ /** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' ); define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */ /** MySQL database username */
define( 'DB_USER', 'username_here' ); define( 'DB_USER', 'username_here' );
/** MySQL database password */ /** MySQL database password */
define( 'DB_PASSWORD', 'password_here' ); define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */ /** MySQL hostname */
define( 'DB_HOST', 'localhost' ); define( 'DB_HOST', 'localhost' );
/** Database Charset to use in creating database tables. */ /** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' ); define( 'DB_CHARSET', 'utf8' );
/** The Database Collate type. Don't change this if in doubt. */ /** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' ); define( 'DB_COLLATE', '' );
/**#@+ /**#@+
* Authentication Unique Keys and Salts. * Authentication Unique Keys and Salts.
* *
* Change these to different unique phrases! * Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
* *
* @since 2.6.0 * @since 2.6.0
*/ */
define( 'AUTH_KEY', 'put your unique phrase here' ); define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' ); define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' ); define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' ); define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' ); define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' ); define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' ); define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' ); define( 'NONCE_SALT', 'put your unique phrase here' );
/**#@-*/ /**#@-*/
/** /**
* WordPress Database Table prefix. * WordPress Database Table prefix.
* *
* You can have multiple installations in one database if you give each * You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please! * a unique prefix. Only numbers, letters, and underscores please!
*/ */
$table_prefix = 'wp_'; $table_prefix = 'wp_';
/** /**
* For developers: WordPress debugging mode. * For developers: WordPress debugging mode.
* *
* Change this to true to enable the display of notices during development. * Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG * It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments. * in their development environments.
* *
* For information on other constants that can be used for debugging, * For information on other constants that can be used for debugging,
* visit the documentation. * visit the documentation.
* *
* @link https://wordpress.org/support/article/debugging-in-wordpress/ * @link https://wordpress.org/support/article/debugging-in-wordpress/
*/ */
define( 'WP_DEBUG', false ); define( 'WP_DEBUG', false );
/* That's all, stop editing! Happy publishing. */ /* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */ /** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' ); define( 'ABSPATH', __DIR__ . '/' );
} }
/** Sets up WordPress vars and included files. */ /** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php'; require_once ABSPATH . 'wp-settings.php';
...@@ -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