Comments for Otto on WordPress https://ottopress.com You have to use an Ottopress to get fresh squeezed Otto. Sun, 25 Jan 2026 09:55:21 +0000 hourly 1 https://wordpress.org/?v=6.9.4 Comment on Creating a WordPress site using SVN by Fun?! with Subversion and WordPress – WerdsWords https://ottopress.com/2011/creating-a-wordpress-site-using-svn/comment-page-1/#comment-14792 Sun, 25 Jan 2026 09:55:21 +0000 http://ottopress.com/?p=407#comment-14792 […] in place that would allow me to checkout code from http & https URLs. Thanks to a very helpful guide by Otto, I managed to setup svn:externals and perform a couple of checkouts and updates directly from the […]

]]>
Comment on WordPress 3.0 Theme Tip: The Comment Form by Adeel Arshad https://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/comment-page-3/#comment-14783 Fri, 09 Jan 2026 13:09:12 +0000 http://ottopress.com/?p=137#comment-14783 Hi Otto, thanks for the excellent breakdown in “WordPress 3.0 Theme Tip: The Comment Form.” I really appreciate how you showed the before-and-after, moving from a messy comments.php block to a clean comment_form() call that’s easier for theme and plugin compatibility.

The section on comment_form_default_fields and comment_form_defaults is especially helpful for understanding what should be changed via filters vs. arguments. One extra tip: if you’re customizing fields, it’s worth keeping accessibility in mind (labels, aria-required, and clear error states) so the form stays usable even with heavy theme styling.

Adeel Arshad
CEO: https://digitalperfection.ae/

]]>
Comment on Internationalization: You’re probably doing it wrong by Otto https://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/comment-page-2/#comment-14732 Wed, 18 Jun 2025 01:15:05 +0000 http://ottopress.com/?p=771#comment-14732 In reply to Alexandre Froger.

That basically gets into the pluralizing section, which I talk about on a later post.

]]>
Comment on Internationalization: You’re probably doing it wrong by Alexandre Froger https://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/comment-page-2/#comment-14731 Tue, 17 Jun 2025 23:34:03 +0000 http://ottopress.com/?p=771#comment-14731 What about “a” vs “an”?
“`
// translators: $s is a fruit/vegetable, like “avocado”, “tomato”, “potato”
$food = __( ‘I have a %s’, ‘my-domain’ );
“`

]]>
Comment on A Good Use For Base 64 Encoding: Data URIs by Otto https://ottopress.com/2011/a-good-use-for-base-64-encoding-data-uris/comment-page-1/#comment-14393 Sun, 26 Mar 2023 04:34:34 +0000 http://ottopress.com/?p=592#comment-14393 If you use the plugin Jetpack, the lazy loading feature breaks it.

]]>
Comment on Internationalization: You’re probably doing it wrong by Joloco https://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/comment-page-2/#comment-14356 Mon, 28 Feb 2022 15:28:13 +0000 http://ottopress.com/?p=771#comment-14356 Great article, essential reading for anyone starting to do i18n on WordPress or in general.

I would like to add my distaste for sprintf as the token replacer though. In my experience translators rarely understand the arcane placeholders, especially when there’s more than one.

I now use PHP’s ‘strtr’ function, which allows for much more obvious replacements for translators to deal with.

For example, “Shipped %1$d on %2$s” conveys nothing and is ripe for errors in typing, whereas “Shipped [QUANTITY] on [DATE]” (or similar) is clearer for everyone, and is much easier for the translator to switch around if the grammar demands it.

There’s an answer on Stack Overflow here with more examples: https://stackoverflow.com/a/60182650/

]]>
Comment on PHP Code Widget by Otto https://ottopress.com/wordpress-plugins/php-code-widget/comment-page-1/#comment-14335 Wed, 01 Dec 2021 14:43:28 +0000 http://ottopress.com/?page_id=32#comment-14335 In reply to Otshelnik-fm.

Correct, and I have no plans to update it.

Stop using this plugin. I wrote about how to stop using it almost 4 years ago now: http://ottopress.com/2017/on-the-topic-of-that-pesky-widget/

This plugin made sense back when migrating theme sidebars to widgets was a new thing, but that hasn’t been since WordPress 2.5 or so. Everybody should stop using executable PHP code stored in the database. Either write a custom plugin, or just switch to using blocks instead, which is much saner, safer, and a solid path forward.

]]>
Comment on PHP Code Widget by Otshelnik-fm https://ottopress.com/wordpress-plugins/php-code-widget/comment-page-1/#comment-14334 Wed, 01 Dec 2021 14:09:48 +0000 http://ottopress.com/?page_id=32#comment-14334 This plugin is not working with PHP 8.0

PHP Deprecated: Function create_function() is deprecated in wp-content/plugins/php-code-widget/execphp.php on line 62

p.s. PHP 8.1.0 – just released

]]>
Comment on WordPress 3.0: Multisite Domain Mapping Tutorial by bupon https://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/comment-page-13/#comment-14310 Wed, 25 Aug 2021 07:18:23 +0000 http://ottopress.com/?p=166#comment-14310 hey Otto, Is this plugin is working in the latest version?

]]>
Comment on WordPress 3.0: Multisite Domain Mapping Tutorial by Otto https://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/comment-page-13/#comment-14308 Thu, 19 Aug 2021 11:12:15 +0000 http://ottopress.com/?p=166#comment-14308 In reply to banyu.

No.

]]>