Best WordPress Hosting
 

Upcoming: Disallow assignments in conditions and remove the Yoda condition requirement for PHP

via make.wordpress.org => original post link

This announcement is the continuation of the long discussion on the WordPress Coding Standards (WPCS) repo.

Yoda conditions (or Yoda notation) is the programming style where the parts of an expression in the condition are reversed from the ‘typical’ order.

In a large part of the world, the natural reading order is left to right (LTR). This is what most programming languages adhere to. That means the variable assignments or echo/print statements are written with the variable first: