What Is New in WordPress 4.5
WordPress 4.5, "Coleman," introduces a suite of refinements focused on streamlining the content creation and site management experience. The update brings significant improvements to the visual editor, theme customization, and developer tools.
| Category | Key Changes |
|---|---|
| New Features | Inline Linking, Live Responsive Previews, Custom Logo Support |
| Editor Improvements | Text Pattern Shortcuts, Redesigned Link Dialog |
| Developer Tools | Script Loader Improvements, Selective Refresh for Customizer |
| Under the Hood | Embed Templates, Comment Query Improvements |
How does the inline linking tool change the editing workflow?
The new inline linking workflow is a major quality-of-life improvement. Instead of a modal window interrupting your flow, you can now add and edit links directly within the visual editor. This feels much more natural and is significantly faster for common tasks.
You simply select text and a small link input toolbar appears. This eliminates the need to move your cursor to a separate button or dialog box. In practice, this reduces the number of clicks and keeps you focused on your content.
What are the new text pattern shortcuts?
WordPress 4.5 adds smart text pattern recognition to the visual editor. It automatically converts certain character combinations into HTML elements as you type, similar to Markdown.
- Type
*or-followed by a space to create a bulleted list. - Type
1.followed by a space to create a numbered list. - Type
##followed by a space to create an H2 heading;###for H3, and so on.
This matters because it allows for a much faster, more fluid writing experience without constantly reaching for the toolbar buttons.
How does the Customizer preview work better for theme developers?
The Theme Customizer received a powerful new feature: Selective Refresh. This is a new framework that allows parts of the preview to update via AJAX instead of forcing a full page reload.
For developers, this means you can register support for selective refresh for specific settings, like a site title or widget. When a user changes that setting, only that specific element is fetched and updated in the preview pane. This creates a smoother, faster, and more intuitive customization experience for the end-user.
What's new with script loading for plugin authors?
The script loader got a smart upgrade with the new wp_add_inline_script() function. This allows developers to attach extra inline scripts to registered scripts, which is incredibly useful for passing dynamic data.
Before, you might have had to output variables in the page header. Now, you can cleanly attach configuration objects directly to the script they belong to. This keeps code more organized and can prevent dependency timing issues.
// Example: Adding a dynamic configuration to a script
wp_add_inline_script( 'my-script-handle', 'var myConfig = ' . wp_json_encode( $config_array ) . ';', 'before' );
FAQ
Does the new inline linking tool work with all themes?
Yes, the inline linking is a core feature of the TinyMCE editor in WordPress 4.5 and functions independently of the active theme.
Can I disable the new text pattern shortcuts if they conflict with my writing?
Yes. You can disable them by adding a small snippet of code to your theme's functions.php file or via a plugin that modifies the TinyMCE configuration.
What is the new "Custom Logo" feature?
It's a standardized way for themes to support a site logo. Theme developers can add support, and users can then upload a logo directly from the Customizer, making it a portable feature across themes that support it.
Are there any changes to embeds in 4.5?
Yes, the oEmbed system now includes a new embed.php template hierarchy. This allows themes to create custom templates for embedded content, giving more control over how posts look when embedded from other sites.
Were there any significant comment-related updates?
Under the hood, comment queries were optimized. The WP_Comment_Query class now caches results more efficiently, which can lead to performance improvements on sites with heavy comment usage.