Skip to content

Commit 16d5ec2

Browse files
authored
Release 2.11.0 (#734)
* Fix/con 416 code cleanup (#721) * Fix/con 420 grecaptcha bugfixes (#719) * move where we filter our language value, to be available for URL parameter setting. * use a getter method instead of direct property access * add some compatibility for WPML and Polylang to use currently used language code with reCAPTCHA * move tab title setting to init, to avoid textdomain errors * run field defaults setting on init to avoid textdomain issues * Fill in next release number * grabbing this from the mass cleanup ticket * Feature/con 426 get lists updates (#720) * allow for conditionally displaying the dismiss link for our notification system. * bump successful list fetch to 12hr timeframe * move failing list sync requests to be cached for a day instead of 15min. This should reduce down failure token requests * new helper method to return whether or not we have exceptions going on * show our lists notes notif * construct our new lists notes notification * variable verbage sync. * Fill in next release number * Fill in next release number * list screen already handled by is_constant_contact(), only show notif if we have the elevated exception * Fill in next release number * Revert "list screen already handled by is_constant_contact(), only show notif if we have the elevated exception" This reverts commit a1f4cb0. * add our exceptions check, but also explain why we are re-checking for current screen * Feature/con 427 pause refresh attempts (#722) * move from day-long transients to persistant option * return early from refresh_token method if we have already determined we need to manually refresh * return a little earlier in exec method on errors * new helper methods for manual disconnect/reconnect needs options * update callback that maybe shows admin notification for the manual disconnect/reconnect to use option over transient * invoke our disconnect/reconnect email upon api result failure specific to invalid_grant. update our wording and potential form ID use * upon manual disconnect, delete our maybe needs reconnected option * demote to h3 to prevent admin notices showing in our styled area; * revise messaging to indicate it could be one of multiple reasons * re-escape for sake of code cleanliness. Add in constant_contact_get_needs_manual_reconnect check to make the status show disconnected * Fill in next release number * Fill in next release number * switch order for consistency, use string parameters instead of boolean values for option storage and comparison * pass string true false instead of boolean, for option data type comparisons * explain early exit * among so many changes going on from different branches, forgot this was not a conditionally shown. It should be persistent * fill in phpdoc for new method * Constant Contact Lists updates in various connective states. (#724) * register our list post type regardless of connected status * start new link for different purposes * fix connecting issues from changes in regards to i18n moves * conditionally rework our sync link based on status of api connection * amend admin notification wording based on connected status * move out of if statements * add an aria-label for ADA compliance * fix dismiss notif logic * make sure we have the key first * npm updates * npm version updates * version bump * version bumps * update changelog * this function is polyfilled in core, so its safe to use * add property types * remove unused code * adding this caused fatal errors * remove unneeded comments * use public method instead of accessing private property * property types * pass post object to our callback instead of rely on the global. also escape some translations * translation escaping * more cleanup around default title changes * add our lists post type to the Calls To Action exclusion. Clean up comment placement * phpdoc type * add in phpdoc for constant_contact_exclude_cleantalk * property types * phpdoc types, method parameter types * only clear on save of our post types * move our notification callbacks to a dedicated file * load new notification logic file * consolidate boolean returns * reduce unneeded variables * remove no longer used function that site owners would not need * translation escaping * simplify the status transition function * sass edits from rebase * build in rebase * remove inline css in favor of the stylesheet * way too preventive. * accept post object for our quickedit removals * quick admin class to allow for hiding styles by default * new admin body class * build in rebase * translation escaping * elementor widget i18n escaping * property types * remove unused array, unneeded comments * add some comments clarifying what type of license referenced and where its linked at * method types * param and return types * instead of setting this blank initially, just set only after the static variable has been set * param type, clarification of ID type * more escaping * various param types, i18n escaping, comment clean up, shorthand boolean operators * reapply some shorthand and fix some fade-out usage * build files * reduce our ternary statement * add some method/function params and try to force types higher in the call stack * more type params and absint usage * reduce if statements and update phpdocs * property and parameter types * class property phpdocs * constructor property declaration * i18n spot for our cron schedule, and some whitespace reduction * more phpdoc cleanup * whitespace * method param types * no need to multiply by one hour to get one hour * phpdoc touchup * variable reduction and return type variability reduction * If we do not have an email value, we return regardless, so no need to check for if the array is empty as a whole * phpdoc touchup * remove unused variable * shorthand ternary * code alignment * shorthand ternary * double up on possible case actions * hard deprecate by removal. Was never a public method so should not break anything from 3rd parties * get_account_link was renamed from get_connect_link and that old method did more than just return an admin url. No need for dedicated method * pass the args argument to our headers. in this case, we passed the base args anyway * fill in phpdocs for client methods, correct @SInCE tags for others from probable copy/paste. fill in missing parameter signatures * imploding empty arrays results in empty string, like our false results in * misc type properties, alignment * object property types * remove passing of matching default value * remove unneeded brackets * clean up some phpdocs * reduce some redundant variable assignment * update heading to h1, make use of WP core functions for title value * unneeded return * add a label for accessibility * empty string return as needed * method param type * remove unneeded brackets * method param type, yoda conditional, simplify some regex * missed phpdoc * method and property type declarations * import namespace, update from deprecated method * property and method types * remove never used variable in 5 years * method and property type declarations * space out long if statement * method and property type declarations * we are forcing an array parameter, but we can return early on empty * if statement simplification * remove unneeded brackets * method and property type declarations * remove unused variable, separate code by line for readability * method and property type declarations * reduce some redundant variable assignment * remove return type. Also we need manage options caps to get the link in general, remove early return * escape our localized js data * remove unneeded variable and passed parameter. set account variable to false by default * pass values directly instead of assigning to variable first * remove missed Google Analytics messaging, missed from version 2.2.0 * remove duplicate function names, move new function into our new file * use more appropriate inline script function * admin asset builds * property, param, return types, fill in missed phpdocs * remove some if statement nesting * encourage SSL even in placeholders * utilize absolute urls in field description * make use of else logic instead of double if checks * remove unused method since looooong time ago, remove space in `-1` * fix messy logic for business name assignment * update url for CTCT KB article * make sure we are checking for selected, not just available as a whole * property, method, return, and phpdoc types * reduce if statement nesting * excess if statement checks for all the things * clean up if statement for readability * remove never used method * reduce properties down to local variables * property and return types * remove unneeded break statements * property, parameter, and return types * property, parameter, and return types * remove unneeded brackets * property, parameter, and return types * ternary and if statement simplification * bracket reduction, missed i18n escapnig, some default values * property, parameter, and return types * remove unneeded brackets * remove unneeded brackets and return type * property, parameter, and return types * fil header doc * property, parameter, and return types * try to set a high limit * property, parameter, and return types * this is an action hook, not a filter * remove unneeded brackets * if statement reduction. we would already be returned if the lists were empty * if statement simplification * more appropriate function to accurately get our intended option value * property, parameter, and return types * early return if we do not have a key * various code cleanup * property type declarations * method param types and return types, and a touch of curly bracket removal * unneeded brackets removal * shorterhand ternary * adjusted if statements * output adjustment * reduced returns * misc touchups * fill in intended version, document parameters and set param types * Feature/con 421 ctct cleanup (#728) * remove all previous API v2 SDK files except items we use * prevent possible usage even if we control everything * manually load our remaining SDK files * versions and changelog * merge in lost changes from me forgetting to pull before force-ish pushing local changes * Feature/con 430 getters (#730) * initial set of getter methods * replace direct api property references with get_api() method. Had to include the one beaver builder * replace direct admin property references with get_admin() method * replace direct admin_pages property references with get_admin_pages() method * more get_api() spots * handle builder field and connect classes * remove old class property from 2.3.0 * handle getters for cpts and user customizations * handle display class * handle display_shortcode class * handle Elementor getter * remove the health property * handle gutenberg and lists getters * handle logging getter * handle process form getter and change 2 spots to use methods in their native class instead of going through getter * handle settings getter * handle mail getter * handle notifications getter and fix getter usage for local method * handle notifications_content and updates getters * handle shortcode getter * mark `constantcontact_api()` as deprecated * switch out newly deprecated function usage * re-fix escaping * fill in release version * fill in release version * return early when not connected, for disclosure display (#731) * remove api v2 auth and middleware code (#733) * remove no longer existing properties * escape some i18n * only save transient if we have no errors * fix indent * convert some odd capitalization * clear list transient on token refresh * Feature/con 424 admin notices upgrade (#732) * bump minimum WP version to allow for safe usage of wp_admin_notice function * convert to wp_admin_notice() and fix a typo * update notice dismiss selector * build copies * add in some nonce verification for dismissals * compiled assets * remove no longer used code * some missed return types * fix oddity from increased type checking. * touch up changelog * Feature/con 432 hide disable emails not connected (#735) * new function that checks first if we are connected, and then if its a "re-connect" needed situation to show metabox * invoke show on parameter for conditional display * update composer to latest available to help with PHP deprecations (#736) * npm updates * update changelog file * update our npm file versions
1 parent ce2790e commit 16d5ec2

File tree

114 files changed

+2374
-7536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+2374
-7536
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
= 2.11.0 =
2+
3+
* Added: hCaptcha data to Site Health Panel
4+
* Updated: Lots of internal code cleanup
5+
* Updated: Removed old Constant Contact SDK code.
6+
* Updated: Hide disclosure text below form if not connected to Constant Contact.
7+
* Updated: Internal, switch to wp_admin_notice() usage.
8+
9+
= 2.10.0 =
10+
11+
* Added: Use current displayed language with Google reCAPTCHA when using WPML or PolyLang.
12+
* Fixed: Issues around language specifications for Google reCAPTCHA.
13+
* Fixed: WordPress notices around textdomain loading.
14+
* Fixed: Added aria-label to disclosure external links for better ADA compliance
15+
* Updated: Amended processes regarding failing API communications when human intervention needed. Includes preventing
16+
excessive attempts to refresh tokens in states where the attempt will fail.
17+
* Updated: Increased notification chances if human intervention needed.
18+
* Updated: Register list post type for Constant Contact Lists even if not yet connected.
19+
* Updated: Notice regarding list management details.
20+
121
= 2.9.0 =
222

323
* Added: hCAPTHCA support.

assets/css/admin-style.css

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)