This release is mostly about code clean up and some design fixes. More details below.

Release v1.53 (14/05/2019)

Engaging Networks Form Block fixes 📣

  • PLANET-3355Fix ‘pageType’ dataLayer push
    • The dataLayer values for ‘pageType’ needed to be fixed. The rule was not complete, so we are getting a lot of blank or unknown values. Now, the ‘pageType’ value are defined based on the wordpress structure (e.g tags, post types), the admin choices on the Planet 4 WP Settings (homepage, act, explore, issues) or the page template used(default, evergreen).
  • PLANET-3515Remove vendor and autoload scripts from plugin-engagingnetworks
    • The purpose of this is so that the plugin can be installed and be functional without using composer.

Code cleanup & Automated tests 🎩

  • PLANET-3517Code cleanup: Http parameter polution
  • PLANET-2906Automatic test: Check page_type pages for author url link
    • Write a selenium test that will be checking in the page_type page if the url of the authors is as expected.
  • PLANET-3518Code cleanup: Dynamic SQL Query
    • A SQL query is constructed dynamically by concatenation. This can lead to SQL injection attacks. It is recommended to use prepared statements for all SQL queries. The prepared statement itself should only use placeholders for data and never concatenate data directly into the query.
  • PLANET-3519Code cleanup: Missing Default Case
    • The switch statement has no default case. This can lead to logical errors when the defined cases do not handle all possibilities. Thus, further code can lead to errors or vulnerabilities.
  • PLANET-3520Code cleanup: Uncaught Exception
    • A function can throw an exception which is not caught when the function is called. Errors should be handled by the application to avoid undefined states, crashes, or exposure of sensitive information.

Bug Fixes 🐛

  • PLANET-3524Top & Bottom Margin rules on blocks.
    • Some irregularities were spotted in vertical alignment. All blocks should be able to be placed together creating a combined vertical space between blocks of 90px (top margin – 30px & bottom margin – 60px). As shown in the screenshot below, all blocks are now <section> blocks that have certain margins.
  • PLANET-3526Consistency of block heading & intro paragraph
    • Not all block headings and introduction paragraphs were being consistent across blocks. The following dimensions are now in place:

XL

heading – 1.875rem/1.2rem

Introduction pararagraph – 1.125rem/1.6rem

L

heading – 1.75rem/1.2rem

Introduction pararagraph – 1rem/1.6rem

M/S

heading – 1.375rem/1.2rem

Introduction pararagraph – 1rem/1.6rem

  • PLANET-3527Menu automatically drops down at 992px width
    • When viewing Planet4 at exactly 992 pixels width the menu was dropping down without any user interaction. This has been fixed now.
Track petitions data in Google Tag Manager (GTM)

Learn how easy is to extract data from your forms and petitions, for both local and global campaigns

Learn more