Skip to content

Instantly share code, notes, and snippets.

@davidmondok
davidmondok / wp-disable-deprecated-notices.patch
Created October 23, 2023 11:37
Patch for removing deprecated notices with WP_DEBUG
--- a/web/wp/wp-includes/load.php
+++ b/web/wp/wp-includes/load.php
@@ -569,7 +569,7 @@
}
if ( WP_DEBUG ) {
- error_reporting( E_ALL );
+ error_reporting( E_ALL & ~E_DEPRECATED );
if ( WP_DEBUG_DISPLAY ) {
@davidmondok
davidmondok / .editorconfig
Last active March 12, 2022 10:10
editorconfig
root = true
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
[*.php]
indent_style = space
@davidmondok
davidmondok / rocket-nginx-directives.conf
Last active May 18, 2020 14:40
Plesk rocket nginx directives
####################################################################################################
# Rocket-Nginx
#
# Rocket-Nginx is a NGINX configuration to speedup your WordPress
# website with the cache plugin WP-Rocket (http://wp-rocket.me)
#
# Author: Maxime Jobin
# URL: https://github.com/maximejobin/rocket-nginx
#
# Tested with WP-Rocket version: 3.0.5.1
@davidmondok
davidmondok / vscode.json
Created April 10, 2020 22:31
vscode settings
{
"beautify.language": {
"js": {
"ext": ["js", "json", "ts"]
},
},
"css.validate": false,
"diffEditor.ignoreTrimWhitespace": true,
"editor.fontSize": 12,
"editor.lineHeight": 18,