Hi Shane,
This is not add-on related, so I won’t list all of mine here… I’ve been able to repro this (and others have mentioned conditional troubles in 2.5.1 on Twitter as well…).
On my local MAMP test installs, the following conditional works on a clean 2.4.0 install, but not 2.5.1:
{exp:channel:entries limit="1" status="not Closed" disable="member_data|trackbacks|pagination"}
{if "{entry_date format='%Y'}" != "{expiration_date format='%Y'}"}
trace…<br>
{/if}
{/exp:channel:entries}
The issue seems to be related to the single / double quote combinations. On 2.5.1, I get the following error (note the double quotes in the error message):
A PHP Error was encountered
Severity: User Warning
Message: Invalid EE Conditional Variable: {if "{entry_date format="%Y"}
Filename: libraries/Functions.php
Line Number: 2843
It’s odd that there are double quotes on both elements in the error, no? Like 2.5.1 is trying to sanitize the quotes? The following code works in both 2.4.0 and 2.5.1 without the error:
{exp:channel:entries limit="1" status="not Closed" disable="member_data|trackbacks|pagination"}
{if '{entry_date format="%Y"}' != "{expiration_date format='%Y'}"}
trace…<br>
{/if}
{/exp:channel:entries}
Any ideas?