Aaron
Forum Replies Created
-
Forum: Plugins
In reply to: [CleverReach® WP] don’t pass null to json_decode()Hi Dennis,
I am using 1.5.20 with WordPress 6.5.2 and PHP 8.1.28, there is no update for CleverReach® WP available- This reply was modified 2 years, 1 month ago by Aaron.
It says something like
Scheduled the cron event nfwgccron to run now. The original event will not be affected.
In full-waf mode, the task gets duplicated with the execution in 1970, but it won’t run- This reply was modified 2 years, 1 month ago by Aaron.
I tried it, nothing changed
There are no errors in WP CLI nor the debug.log when logging is enabled.
Nope, nothing is logged there if I call https://example.com/wp/wp-cron.php. I am having missed cron events on two different hosting providers with a bedrock setup in full-WAF mode. In one case, I run
wp cron event run --due-now --path="/path/to/the/wp/folder" > /dev/null 2>&1but with the other hosting I don’t have the option to run WP-CLI and therefore need to run it by calling wp-cron.php
If I got it right this time, it should be
if ( strpos( $_SERVER['SCRIPT_FILENAME'], '/wp-cron.php') !== FALSE ) { return 'ALLOW'; }However, whitelisting does not to solve the issue.
Forum: Plugins
In reply to: [Minify HTML] Block patterns and commentsAmature or not, this is how it works right now. I suggest disabling this feature then per default, or at least give them a warning in the plugin settings-page, so other users of the plugin don’t run into the same issue.
Forum: Plugins
In reply to: [Minify HTML] Block patterns and commentsGutenberg blocks can come in various forms, each block is wrapped in comments another example could be
<!-- wp:arch/text {"size":"sm","customMargin":true,"margin":"lg","content":"Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque nisl consectetur et."} --> <p class="wp-block-arch-text">Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p> <!-- /wp:arch/text -->Unlike my first example, this block is not available in core WordPress.
However, the comments are only stored in the database as post content. They are only visible inside the Gutenberg editor if you switch to the code editor (shift+cmd+option+m) and are not outputted in the front-end.
Forum: Plugins
In reply to: [Minify HTML] Block patterns and commentsI prepared a test function for you so you can investigate.
add_action('init', function () { register_block_pattern( 'test', [ 'title' => __('test title', 'text-domain'), 'description' => __('test description', 'text-domain'), 'content' => '<!-- wp:paragraph --> <p>Lorem ipsum</p> <!-- /wp:paragraph -->', ] ); });Forum: Plugins
In reply to: [Slim SEO - A Fast & Automated SEO Plugin For WordPress] shortcodeWell, I rethought it and I do return something in my save component now that can be parsed.
Forum: Plugins
In reply to: [Slim SEO - A Fast & Automated SEO Plugin For WordPress] shortcodeHey @rilwis,
I rechecked and noticed two things:
- My own block: No preview inside meta description, but output in the meta-tag without short shortcode execution.
- The Core Paragraph Block Works as expected
I guess it is because I use render callbacks: my block is storing its content inside the block attributes and the safe function is returning null. If this approach is wrong when using render callbacks, I appreciate a hint 😉
Below are my block attributes in comparison to the core paragraph attributes
<!-- wp:aaronkessler/text {"size":"5xl","margin":"xl","customMargin":true,"tag":"h1","content":"\u003cmark class=\u0022mark bg-white\u0022\u003e\u003cspan class=\u0022mark-span bg-gradient-to-r from-primary-700 via-primary-500 to-primary-700 text-transparent bg-clip-text\u0022\u003eWebdesign\u003c/span\u003e\u003c/mark\u003e und Medien[shy]gestaltung","gradient":"Primary-Gradient","font":"Display","className":"mark-first-word","anchor":"heading"} /--> <!-- wp:paragraph --> <p>Medien[shy]gestaltung</p> <!-- /wp:paragraph -->I guess for the preview it is impossible to get it to work, because AFAIK there is no standard for block attribute names.
But since it is outputting the content without the shortcode execution inside the meta-tag, I guess there must be a way to fix it.
Forum: Plugins
In reply to: [Slim SEO - A Fast & Automated SEO Plugin For WordPress] shortcodeHey,
Sure I did. Otherwise, the short code won’t get executed inside the Gutenberg editor. Your question make me think you missed the important thing: This only happens if I don’t enter a meta description myself, and keep using the default one. As soon as I enter something, the shortcode works as expected.
Forum: Plugins
In reply to: [Germanized for WooCommerce] revocation email textHi,
ich sehe dort nichts, aber https://vendidero.de/dokument/template-struktur-templates-im-theme-ueberschreiben hilft mir wahrscheinlich weiter. Danke für den Hinweis mit dem E-Mail-Template im Child-Theme, das hat auf diese Möglichkeit aufmerksam gemacht.
Forum: Fixing WordPress
In reply to: core-block-supports-inline-cssThanks a lot! I never thought of it being put in because of debugging.
I would consider this a workaround and not a fix since it adds no space character. However, I did
.gutentor-post .gutentor-entry-meta-primary div a:not(:first-child) { padding-left: 5px; }to avoid padding-left on first entries.