A WordPress Commenter - A WordPress Commenter - Page 122 Of 131

Performance team meeting summary 11 October 2022

Meeting agenda here and the full chat log is available beginning here on Slack. Focus area updates Images @adamsilverstein @mikeschroder GitHub project @adamsilverstein: Committed two small fixes related to the existing `image_editor_output_format` filter – #54476 and #56442 @mukesh27: Added checkbox to Settings > Media to control whether to generate JPEG in addition to WebP in #537 @flixos90: This […]

Moving the send_headers action to later in the load

As of WordPress 6.1, the send_headers hook has been moved to slightly later in the WordPress loading routine (ticket). Historically, all the is_ functions (like is_singular) wouldn’t work when you were determining which headers to send. With this change, moving `send_headers` to after WordPress parses the query, those functions now work properly. People can now have more control […]

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. Example $table = ‘my_table’; $field = ‘my_field’; $value = ‘my_value’; $wpdb->prepare(‘SELECT * FROM %i WHERE %i = %s’, […]

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 JavaScript. However, while this block.json scanning convention is extremely convenient, it does add additional processing when core blocks are instantiated. […]

Performance Chat Agenda: 11 October 2022

Here is the agenda for this week’s performance team meeting scheduled for October 11, 2022, at 15:00 UTC. Announcements Focus area updates Images Object Cache Site Health Measurement JavaScript Infrastructure Focus area updates – @flixos90 Module proposal: SQLite – @aristath Open floor This meeting happens in the #core-performance channel. To join the meeting, you’ll need an account on the […]