WordPress 4.5 Update Now Available

WordPress 4.5 will help streamline your workflow.

Things to note

  • Inline Linking (link to your content easier/quicker)
  • Responsive Previews (Preview mobile, tablet, and desktop views)
  • Custom Logos (themes can now support them)
  • Smart Image resizing (Generated images now load up to 50% faster)
  • Javascript library updates (most notable: jQuery 1.12.3, jQuery Migrate 1.4.0)
  • Various bug fixes (always good)

If you have not done so already – download the update or simply use your existing installation of WordPress to update your site. Either way – this is an excellent time to make a backup copy of your site(s) before upgrading.

A big thanks to all the contributors for their time and attention to the new features/fixes.

Control Image Cropping Better (WordPress)

Recently we were working on a project that used the WordPress add_image_size() function to crop images a specific size for the archive view. We noticed that there were a lot of faces getting cut off (at the top of the image). Fortunately – there is a way to fix this:

In our theme we were using:
add_image_size(‘archive, 220, 120’, true) which hard cropped the image at 220px x 120px) but the hard crop started at the center of the image and went out. In order to reduce the head cropping – we changed it to:
add_image_size(‘archive, 220, 120’, array(‘center’, ‘top’)). Having something in the array still signals for a hard crop – but it starts at the top/center (as I specified) vs. center/center.

After changing the crop options – make sure you rebuild your thumbnails with something like: AJAX Thumbnail Rebuild

There are other options as well:

  • x_crop_position accepts ‘left’ ‘center’, or ‘right’
  • y_crop_position accepts ‘top’, ‘center’, or ‘bottom’

Further documentation: https://developer.wordpress.org/reference/functions/add_image_size/

WordPress 4.4.2 Security and Maintenance Release

WordPress 4.4.2 is now available for download/install. This update contains security updates for all previous updates and you are strongly encouraged to update your site(s) immediately.

WordPress versions 4.4.1 and earlier are affected by two security issues (XSS and open redirection).

Along with the security updates, WordPress 4.4.2 fixes 17 bugs from 4.4 and 4.4.1 (see release changes).

WordPress 4.4.1 Security and Maintenance Release

WordPress 4.4.1 is now available for download/install. This update contains security updates for all previous updates and you are strongly encouraged to update your site(s) immediately.

WordPress versions 4.4 and earlier are affected by a cross-site scripting vulnerability that could allow a site to be compromised.

Along with the security updates, WordPress 4.4.1 fixes 52 bugs from 4.4 (see release changes).

WordPress 4.4 Update Now Available

WordPress 4.4 makes your site more connected and responsive.

Say hello to the latest WordPress release: WordPress 4.4! This is a great release for both developers and users for many reasons. Front end users get a new theme to choose/use “Twenty Sixteen” which is simple and looks great on all devices. WordPress 4.4 also introduces a new way to display images so they will look great on all devices, and an an exciting embed option so you can now embed posts from WordPress sites into your site easily.

Developers also benefit a lot from WordPress 4.4 thanks to adding in REST API infrastructure to WordPress core, term meta (yay!), as well as improved performance with WP_Comment_Query().

If you have not done so already – download the update or simply use your existing installation of WordPress to update your site. Either way – this is an excellent time to make a backup copy of your site(s) before upgrading.

Enjoy and thanks to all the contributors for making this a great release!

WordPress Update: WordPress 4.3.1 Available

WordPress 4.3.1 is now available and should be applied to all your sites as soon as possible as is a security release that addresses two cross-site scripting vulnerabilities and a potential privilege escalation. For more information, see the release notes or view the list of changes.

You can read more about the update: https://wordpress.org/news/2015/09/wordpress-4-3-1/

You can download WordPress 4.3.1: http://wordpress.org/wordpress-4.3.1.zip

WordPress Update: WordPress 4.3 Available

WordPress 4.3 is now available for download.

For WordPress Users

This update includes a number of improvements in the admin area (menu customizer, formatting shortcuts, site icons), automatically generated secure passwords for new users, comments turned off by default for pages, and other great changes which will make working with WordPress on all your devices easier and more enjoyable.

For WordPress Developers

There are some noticeable changes with this new version as well including a new page template (singular.php), multisite changes, list table changes, and other customizer enhancements.

You can read more about the update: http://wordpress.org/wordpress-4.3.zip

WordPress Update: WordPress 4.2.4 Available

WordPress 4.2.4 is now available and should be applied to all your sites as soon as possible as it addresses six issues, including three cross-site scripting vulnerabilities and a potential SQL injection that could be used to compromise a site. For more information, see the release notes or view the list of changes.

You can read more about the update: https://wordpress.org/news/2015/08/wordpress-4-2-4-security-and-maintenance-release/

You can download WordPress 4.2.4: http://wordpress.org/wordpress-4.2.4.zip

WordPress Update: WordPress 4.2.3 Available

WordPress 4.2.3 is now available and should be applied to all your sites as soon as possible as it addresses security issues and contains fixes for 20 bugs from WordPress version 4.2. For more information, see the release notes or view the list of changes.

You can read more about the update: http://wordpress.org/wordpress-4.2.3.zip

Query All Custom Page Templates in WordPress

Make your WordPress quality assurance easier by using this custom query to easily find all custom pages templates and the pages that use them.

Here is a query you can use/run to find an example of any custom page template created and used on your WordPress site:

The Custom Page Templates Query

SELECT posts.ID, meta.meta_value
FROM wp_posts AS posts
LEFT JOIN wp_postmeta AS meta ON posts.ID = meta.post_ID
AND meta.meta_key = '_wp_page_template'
WHERE posts.post_status = 'publish'
AND meta.meta_value IS NOT NULL
GROUP BY meta.meta_value

The Custom Page Templates Results

That query will then return results that show the post ID as well as the page template file name so you can then easily see all your custom page templates in place. (See image below as an example)

WordPress query results for all custom page templates

Using the Results for Quality Assurance

In order to then actually see the pages that use the custom page templates, you would use the following URL format:

http://www.yoursite.com/?p={ID}

Real world example using this web site as well as the post ID of 123:

http://jzelazny.wpengine.com/?p=123

To do your final QA – you would just substitute the post ID with each found in the query results. You can then be sure you have tested a sample of each custom page template.