Comments for WordPress Developer Blog https://developer.wordpress.org/news A site for plugin and theme developers, freelancers, and agency developers Mon, 17 Mar 2025 15:40:27 +0000 hourly 1 https://wordpress.org/?v=6.8-alpha-59827 Comment on Beyond block styles, part 1: using the WordPress scripts package with themes by Richard Lampitt https://developer.wordpress.org/news/2023/07/beyond-block-styles-part-1-using-the-wordpress-scripts-package-with-themes/#comment-17458 Mon, 17 Mar 2025 15:40:27 +0000 https://developer.wordpress.org/news/?p=1706#comment-17458 In reply to Justin Tadlock.

Perfect, thanks for the prompt reply! Very heartening to hear that build tools are not mandated.

]]>
Comment on Building a book review site with Block Bindings, part 1: Custom fields and block variations by Justin Tadlock https://developer.wordpress.org/news/2024/05/building-a-book-review-site-with-block-bindings-part-1-custom-fields-and-block-variations/#comment-17457 Mon, 17 Mar 2025 15:27:17 +0000 https://developer.wordpress.org/news/?p=3588#comment-17457 In reply to Brad Dalton.

Just tested the code on WordPress 6.7.2, and it still works as it should. Did you try the code directly from the repo?

]]>
Comment on Beyond block styles, part 1: using the WordPress scripts package with themes by Justin Tadlock https://developer.wordpress.org/news/2023/07/beyond-block-styles-part-1-using-the-wordpress-scripts-package-with-themes/#comment-17456 Mon, 17 Mar 2025 15:22:03 +0000 https://developer.wordpress.org/news/?p=1706#comment-17456 In reply to Richard Lampitt.

Sure, you can write it all in vanilla JS if you prefer. Most developers will want to move over to using more modern tools, though, so that’s the method that I teach.

]]>
Comment on Beyond block styles, part 1: using the WordPress scripts package with themes by Richard Lampitt https://developer.wordpress.org/news/2023/07/beyond-block-styles-part-1-using-the-wordpress-scripts-package-with-themes/#comment-17455 Mon, 17 Mar 2025 15:09:31 +0000 https://developer.wordpress.org/news/?p=1706#comment-17455 Is there no way of doing this without the unneeded faff of build tools?

]]>
Comment on Building a book review site with Block Bindings, part 1: Custom fields and block variations by Brad Dalton https://developer.wordpress.org/news/2024/05/building-a-book-review-site-with-block-bindings-part-1-custom-fields-and-block-variations/#comment-17383 Mon, 17 Mar 2025 11:29:18 +0000 https://developer.wordpress.org/news/?p=3588#comment-17383 3 Stars]]> The star rating doesn’t work properly. It will show a 3 if added as a custom field value but not actually show 3 stars. It only ever shows 1 actual star. ⭐️ 3 Stars

]]>
Comment on How to register block variations with PHP by Patty69 https://developer.wordpress.org/news/2024/03/how-to-register-block-variations-with-php/#comment-17300 Thu, 27 Feb 2025 07:31:14 +0000 https://developer.wordpress.org/news/?p=2996#comment-17300 Yes, My blog performance improved due to block variations with PHP. Thanks

]]>
Comment on Understand and use WordPress nonces properly by kmw https://developer.wordpress.org/news/2023/08/understand-and-use-wordpress-nonces-properly/#comment-17296 Tue, 25 Feb 2025 22:35:10 +0000 https://developer.wordpress.org/news/?p=1746#comment-17296 > When you need a nonce for the URL, you’re covered with wp_nonce_url().

The link for wp_nonce_url in this paragraph is broken, FYI.

]]>
Comment on Understand and use WordPress nonces properly by David Anderson / Team Updraft https://developer.wordpress.org/news/2023/08/understand-and-use-wordpress-nonces-properly/#comment-17090 Wed, 19 Feb 2025 11:44:50 +0000 https://developer.wordpress.org/news/?p=1746#comment-17090 This….

if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET[ ‘my_custom_nonce_name’ ] ) ), ‘delete-user’ ) ) {

…. is madness, when you consider that WordPress core could/should just provide a single function calls that does everything needed.

]]>
Comment on Mastering light and dark mode styling in block themes by NICHOLAS AMOL GOMES https://developer.wordpress.org/news/2024/12/mastering-light-and-dark-mode-styling-in-block-themes/#comment-17074 Wed, 19 Feb 2025 02:58:46 +0000 https://developer.wordpress.org/news/?p=4865#comment-17074 long waited allow to schedule realese now is over why so daley

]]>
Comment on An introduction to block variations by Mario https://developer.wordpress.org/news/2023/08/an-introduction-to-block-variations/#comment-16886 Thu, 13 Feb 2025 15:30:43 +0000 https://developer.wordpress.org/news/?p=1898#comment-16886 Hello, thank you for this post. It is very helpful. Is it possible to check with php is the blcok variation is active? something like ‘if isActive(“namespace”)’?

]]>