Closed ernilambar closed 6 years ago
Separated from https://github.com/WPTRT/WordPress-Coding-Standards/pull/30#issuecomment-274225355
define('HEADER_IMAGE_WIDTH',1200); define('HEADER_IMAGE_HEIGHT',600);
This type of code and similar should be caught by the sniff I believe. This code wont give Constant already defined error, since this was the recommended method used to override Custom Header before 3.4.
Constant already defined
I think it makes sense. This code would fail in the current Theme Check too. https://github.com/WordPress/theme-check/blob/master/checks/constants.php
Separated from https://github.com/WPTRT/WordPress-Coding-Standards/pull/30#issuecomment-274225355
This type of code and similar should be caught by the sniff I believe. This code wont give
Constant already defined
error, since this was the recommended method used to override Custom Header before 3.4.