See what's new, improved, and fixed in this release.
Improved security: only users with the “run PHP” permission can now add or change the PHP in a campaign’s display conditions and PHP Scripts, including on campaigns created by someone else and whichever way the campaign is saved. When anyone else saves a campaign, the PHP it already contains is kept, and new or changed PHP is not saved: a display condition stays in place and, as before, counts as not met. A copy or import made by a user without the permission does not carry the PHP over, and such a user can no longer hand a campaign that contains PHP or custom JavaScript they may not write to an author who could run it.
Improved security: on a multisite network only super admins can run or add PHP in campaigns, in line with how WordPress keeps code editing away from site administrators on a network. PHP in campaigns created by site administrators no longer runs; a super admin can take the campaign over to keep it.
Improved security: only users allowed to add code can now add or change custom JavaScript, “Run Javascript” actions and {fbExpr} expressions, including on campaigns created by someone else. Code the campaign already contains is kept when anyone else saves it.
Improved security: {fbExpr} now only runs the expressions written into the campaign itself. A Smart Tag inside an expression is now always read as a number or as text, so its value can no longer change what the expression does. Put a Smart Tag whose value is not a number in quotes, for example {fbExpr ‘{fb.title}’.length}; outside quotes such a value no longer works as code. An expression that contains a shortcode is no longer evaluated. If you use a page cache, clear it after updating so existing expressions keep working.
Improved security: a campaign that mirrors the display conditions of another campaign only runs that campaign’s PHP conditions when the authors of both campaigns have the “run PHP” permission.
Improved security: PHP Scripts that run on a form submission now always treat the form ID as plain text.
Improved security: the campaign an action opens, closes or destroys, an action’s event and the opening sound file are now always treated as plain values, and a saved action can no longer carry its own ready-made JavaScript.
Changed: an action’s delay must be a plain number of seconds, such as 1.5. A value like “1,5” or “2s” now means no delay.
Improved security: the floating button’s text color, background color and font size can no longer contain HTML.
Improved security: a Smart Tag whose value contains the same Smart Tag is now replaced only once. Before, such a value (for example a campaign title containing {fb.title}, or a matching value in the page address) kept the page loading until it timed out.
Fixed: a campaign using the {woo.stock} or {edd.stock} Smart Tag caused a fatal error on the page.
Fixed: campaigns created with FireBox 2.x without a background overlay, and some library templates, showed a dimmed background overlay since 3.1.9.
Fixed: the “Go to URL” action cut the address off at its second query parameter (for example ?a=1&b=2).
Fixed: campaign settings, an opening sound or an action saved in an unexpected format could cause a fatal error or a PHP warning on the page.