Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename duplicate filter #263

Merged
merged 2 commits into from May 4, 2022
Merged

Rename duplicate filter #263

merged 2 commits into from May 4, 2022

Conversation

cadic
Copy link
Contributor

@cadic cadic commented May 4, 2022

Description of the Change

Closes #262

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Credits

Props @

@cadic cadic added this to the 1.0.14 milestone May 4, 2022
@cadic cadic self-assigned this May 4, 2022
@@ -144,7 +144,7 @@ function send_track_event( $tracker, $post, $action ) {
*
* @return {array} Tracking data to send.
*/
$data = apply_filters_ref_array( 'sophi_tracking_data', array( $data, &$tracker, $post, $action ) );
$data = apply_filters_ref_array( 'sophi_tracking_request_data', array( $data, &$tracker, $post, $action ) );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could similarly go with sophi_cms_tracking_request_data since this is the portion of the plugin where we send post publishing/update events, correct? Would be separate from the javascript tracking that happens on the site frontend, yeah?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in which case maybe the other one gets updated to sophi_js_tracking_request_data?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeffpaul great idea. I also updated the second filter sophi_cms_tracking_result for consistency

@sonarcloud
Copy link

sonarcloud bot commented May 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@cadic cadic requested a review from jeffpaul May 4, 2022 14:26
@jeffpaul jeffpaul merged commit 6290798 into develop May 4, 2022
@jeffpaul jeffpaul deleted the fix/262 branch May 4, 2022 14:31
@jeffpaul
Copy link
Contributor

@cadic looks like maybe we missed updating the docblock name of the hooks here?

@cadic cadic mentioned this pull request May 11, 2022
6 tasks
@cadic
Copy link
Contributor Author

cadic commented May 11, 2022

@jeffpaul thank you for finding this. Fixed in #268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filter sophi_tracking_data conflict
2 participants