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

Broadcasts Importer: Remove Duplicate Title in Content #735

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

n7studios
Copy link
Contributor

Summary

As requested, if the Broadcast's title matches a H1 through H6 in the Broadcast's content, removes the heading in the content, because the Broadcast's title is always stored as the WordPress Post title, and a Post title is required.

Kit:
Screenshot 2024-10-30 at 12 09 29

WordPress:
Screenshot 2024-10-30 at 12 13 27

Testing

  • BroadcastsImportTest: Updated assertion to confirm no H1 is included in the HTML Template Test broadcast, which contains the same title in both the Broadcast's title and H1.

Checklist

@n7studios n7studios self-assigned this Oct 30, 2024
@n7studios n7studios changed the title Broadcasts: Remove Duplicate Title in Content Broadcasts Importer: Remove Duplicate Title in Content Oct 30, 2024
@n7studios n7studios requested review from a team, noelherrick and jenessawhite and removed request for a team October 31, 2024 06:19
@n7studios n7studios marked this pull request as ready for review October 31, 2024 06:19
@n7studios n7studios changed the base branch from broadcasts-importer-refactor-functions to main November 1, 2024 01:30
@n7studios n7studios merged commit c78d80f into main Nov 1, 2024
77 checks passed
@n7studios n7studios deleted the broadcasts-remove-duplicate-title branch November 19, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants