Best WordPress Hosting
 

Escaping Table and Field names with wpdb::prepare() in WordPress 6.1

As part of the WordPress 6.1 release, wpdb::prepare() has been updated so it can escape Identifiers (such as Table and Field names) with the %i placeholder (#52506). This ensures these values are escaped correctly and don’t lead to SQL Injection Vulnerabilities. Continue reading Escaping Table and Field names with wpdb::prepare() in WordPress 6.1

Improved PHP performance for core blocks registration

Early block.json Registration Method Starting with WordPress 5.8, extenders were encouraged to begin to utilize block.json to register blocks through a unified registration process. The benefits offered by this update provide consistency and convenience when registering blocks through PHP or Continue reading Improved PHP performance for core blocks registration

Introducing “Update URI” theme header in WordPress 6.1

WordPress 6.1 introduces a new header available for theme authors. This allows third-party themes to avoid accidentally being overwritten with an update of a theme of a similar name from the WordPress.org Theme Directory. Previously, any custom theme which used the same slug as a theme Continue reading Introducing “Update URI” theme header in WordPress 6.1

New cache Site Health checks in WordPress 6.1

As part of the WordPress 6.1 release, the Performance Team has added two Site Health checks (Persistent Object Cache and Page Cache). These checks were previously tested in the Performance Lab plugin. You can read more about them in the Continue reading New cache Site Health checks in WordPress 6.1

New is_login_screen() function for determining if a page is the login screen

In #19898 the is_login_screen() function was introduced to allow for determining if a page is the login page. The is_login_screen function determines if the current request is for the WordPress login screen returning true when the current screen matches and Continue reading New is_login_screen() function for determining if a page is the login screen

Updates to the @wordpress/create-block templating system

A powerful feature of the @wordpress/create-block package is the ability to create templates to allow customization of how a block is structured. WordPress 6.0 introduces some new template variables to allow even more customization. Templates can now use the customScripts variable to Continue reading Updates to the @wordpress/create-block templating system