As most of you might have known, WordPress 4.4 just got released. It has a lot of cool new features like responsive images, REST API, Term Meta etc. Brian Krogsgard has a nice and comprehensive writeup about the new features and read it if you want to get more information about these new features.
Another important aspect of WordPress 4.4 release is that it had 471 contributors, the highest so far. I am happy to say that I am one of those 471 people and this is the second time I got props for a WordPress release. The previous one was for WordPress 4.3 which was released in August this year.
In this post I am going to briefly talk about the tickets that I worked on for WordPress 4.4.
Human readable data size constants
The first ticket that I contributed a patch was 22405. My patch introduced constants for common data sizes, so that you can use human readable constants like
KB_IN_BYTES instead of hard-coded numbers like
1024 * 1024.
The following are the new constants that got added.
In addition to adding these constants, I also went over WordPress core codebase and replaced hard-coded numbers with the above constants.
Change password reset email subject based on user information
WordPress already provides the
retrieve_password_title filter that allows you to change the subject of the “password reset” emails. But the problem with that filter is that it doesn’t pass user information. So if you wanted to change the email subject based on user information then it was not possible till now.
I have added both
user_data parameters to the
retrieve_password_title filter and now this allows you to change the email subject based on user information. This was done as part of ticket 34252
In addition to the above tickets I also worked on 34363, which was just a documentation fix.
I am very happy to have played a (small) part in the release of WordPress 4.4. If you are interested in contributing to WordPress then checkout the contributor handbook.