-
Notifications
You must be signed in to change notification settings - Fork 795
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
SEO Tools: add archive_title page title token #20920
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
@jeherve Before I start poking around in Calypso, what do you think of this approach? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeherve Before I start poking around in Calypso, what do you think of this approach?
I think that makes perfect sense, it's more logical than before.
I would, however, recommend that we keep transforming the [date]
token in the interface, to avoid things like this on sites that are already set up:
That makes sense, I've changed things up so we are essentially only hiding the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well for me. I only have a minor remark, but that's not a blocker.
projects/plugins/jetpack/_inc/client/traffic/seo/custom-seo-titles.jsx
Outdated
Show resolved
Hide resolved
…tles.jsx Capture group not needed Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
@jeherve Could you help me wrap my head around the wp-admin vs Calypso side of this. If the Calypso side is deployed, then connected WPorg JP sites will see the button to insert the Is a JP version check needed when adding the |
That's what I would recommend, yes. Calypso includes utility functions to help you with this. |
Great news! One last step: head over to your WordPress.com diff, D66237-code, and commit it. Thank you! |
r231579-wpcom |
* master: (32 commits) jetpack: Work around another calypso-build oddity (#21004) Fix/20806 Browser console deprecation warning for BlcokControl entity (#20922) Search: Improve filter label alignment for longer terms (#21008) Theme Tools: rm extra Social Menu added in Twenty Twenty theme (#20993) Notifications: fix DailyMotion shortcode render in Calypso (#21032) Notifications: Fix VR shortcode render (#20871) E2E tests: fix for logging Jetpack version (#21054) Admin Menu: Fix skipped tests (#21055) Admin Menu: Sanitize current screen identifier (#21049) Fix/phpunit failed on multisite (#21053) Boost: Fix Critical CSS resume on module re-enable (#21031) Update wordpress monorepo (#21021) Unit tests: test_get_user_connection_data_with_connected_user skip for multisite (#21045) Publicize: move it to plugins folder (#21016) SEO Tools: add archive_title page title token (#20920) Unit tests: Fix silent errors in Jetpack tests (#21030) actions: Don't run Beta Plugin artifact action on forked PRs (#21019) Jetpack Sync: Fix broken Sync unit tests (#21037) Notifications: Fix SoundCloud shortcode render (#20869) Jetpack Assistant: Correct purchased product feature class (#21014) ...
# By Ivan Ottinger (4) and others # Via GitHub * master: (28 commits) Boost: Fix linting config and standards in files (#21015) jetpack: Work around another calypso-build oddity (#21004) Fix/20806 Browser console deprecation warning for BlcokControl entity (#20922) Search: Improve filter label alignment for longer terms (#21008) Theme Tools: rm extra Social Menu added in Twenty Twenty theme (#20993) Notifications: fix DailyMotion shortcode render in Calypso (#21032) Notifications: Fix VR shortcode render (#20871) E2E tests: fix for logging Jetpack version (#21054) Admin Menu: Fix skipped tests (#21055) Admin Menu: Sanitize current screen identifier (#21049) Fix/phpunit failed on multisite (#21053) Boost: Fix Critical CSS resume on module re-enable (#21031) Update wordpress monorepo (#21021) Unit tests: test_get_user_connection_data_with_connected_user skip for multisite (#21045) Publicize: move it to plugins folder (#21016) SEO Tools: add archive_title page title token (#20920) Unit tests: Fix silent errors in Jetpack tests (#21030) actions: Don't run Beta Plugin artifact action on forked PRs (#21019) Jetpack Sync: Fix broken Sync unit tests (#21037) Notifications: Fix SoundCloud shortcode render (#20869) ... # Conflicts: # projects/plugins/boost/tsconfig.json
…workflow # By Brad Jorsch (6) and others # Via GitHub * master: (53 commits) Boost: Fix linting config and standards in files (#21015) jetpack: Work around another calypso-build oddity (#21004) Fix/20806 Browser console deprecation warning for BlcokControl entity (#20922) Search: Improve filter label alignment for longer terms (#21008) Theme Tools: rm extra Social Menu added in Twenty Twenty theme (#20993) Notifications: fix DailyMotion shortcode render in Calypso (#21032) Notifications: Fix VR shortcode render (#20871) E2E tests: fix for logging Jetpack version (#21054) Admin Menu: Fix skipped tests (#21055) Admin Menu: Sanitize current screen identifier (#21049) Fix/phpunit failed on multisite (#21053) Boost: Fix Critical CSS resume on module re-enable (#21031) Update wordpress monorepo (#21021) Unit tests: test_get_user_connection_data_with_connected_user skip for multisite (#21045) Publicize: move it to plugins folder (#21016) SEO Tools: add archive_title page title token (#20920) Unit tests: Fix silent errors in Jetpack tests (#21030) actions: Don't run Beta Plugin artifact action on forked PRs (#21019) Jetpack Sync: Fix broken Sync unit tests (#21037) Notifications: Fix SoundCloud shortcode render (#20869) ... # Conflicts: # projects/plugins/boost/tsconfig.json # projects/plugins/jetpack/tests/e2e/bin/env.sh
Changes proposed in this Pull Request:
archive_title
token which builds on the currentdate
token.[date]
will continue to work on a site, but we'll hide the "Date" insertion button in favor of "Archive Title"./portfolio
), while still showing the date on date-based archives.Jetpack product discussion
#8918
Automattic/wp-calypso#56084
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
/wp-admin/admin.php?page=jetpack#/traffic
Customize your SEO settings
is enabled.Expand to customize the page title structures of your site.
Archives
use the buttons to insert each token presented (Site Title, Tagline, and Archive Title).+ Date
button, manually type in[date]
.Save settings
and refresh to make sure the custom Archive title persists.example.com/portfolio/
. In the<title>
you should see "Projects" replacing the[archive_title]
and[date]
tokens.example.com/2019/09
. Here you should see the appropriate date replacing the[archive_title]
and[date]
tokens.Next, spin up the Calypso portion: Automattic/wp-calypso#56084
calypso.localhost:3000/marketing/traffic/example.com
Archives
section and make sure you see the correct custom Archives title you set in WP Admin.Date
andArchive Title
token by clicking, and then adding them again.<title>
comes through.>= 10.2-alpha
Before:
After:
Calypso After:
Example
/portfolio
title:Example
/2021/09/
title: