-
Notifications
You must be signed in to change notification settings - Fork 849
Settings: Recognize valid Akismet keys from wp-config and restrict input #16542
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
Conversation
This is an automated check which relies on E2E results is available here (for debugging purposes): https://jetpack-e2e-dashboard.herokuapp.com/pr-16542 |
I would <3 to be more specific here but the problem is we can't assume that the constant is set in For example, I could add the key to any plugin or theme and it would still be set. I'm tempted to use
or
|
|
@eeeeevon13 @BrookeDot More than happy to oblige with whatever copy y'all think is best. 😄 On a separate note, to everyone: code-wise, is this PR looking okay? |
|
@beaulebens Do you have thoughts, on the text of the message itself or know who should chime in here? |
|
I doubt I'm the best person to comment here, but there are really only 2 instances that I can think of where this handling/message are relevant;
I'd lean towards optimizing for the second one, but either way just making the message something pretty generic like "Your site has been configured with a valid antispam key" or something like that. |
634e6aa to
d3e27c6
Compare
@beaulebens Does my proposed copy, "A valid key has been set in your site's configuration," cover both of these cases? Specifically looking at case 2, I think this wording lets the user know that even though they may not have set a key themselves, a valid key exists somewhere and has been recognized, whether put there by a provider or another site admin. I'm not a copywriter or a designer, though, only a developer 😅 What are your thoughts?
Since we also have help text below the input that reads "Your Antispam key is valid," I wonder if mentioning Antispam again woulld come across as too repetitive? |
|
That change works for me, yep. I think it strikes a good enough balance of detail and simplicity. |
* master: (41 commits) use blog token to make the request (#16635) External Media: Add account disconnect button (#16759) CI: Try collect js coverage (#16786) Sync: Fix nonce action string in theme edit sync (#16702) Connect-in-place: hide new heading during connection process (#16703) Update dependency eslint-plugin-jsdoc to v30.2.1 (#16765) Theme Tools: Resolve PHP 7.4 array offset notice. (#16795) New shell command for easier access to the database. (#16761) My Plan: Add Offer Reset project new plans (Jetpack Security, Jetpack Complete) (#16739) Increase the `editor.MediaUpload` hook priority (#16669) External Media: Remove `speak` announcement when inserting media. Extensions: make `render_callback` optional when checking block registration against plan (#16746) Conditional check for wrapper before giving focus to new page (#16817) Docker: Add package testing shortcut (#16810) Settings: Recognize valid Akismet keys from wp-config and restrict input (#16542) Social Previews: Add Modal (#16704) Update dependency preact to v10.4.7 (#16768) Improve a11y of amp-social-share (#16737) Instant Search: Tweak expanded result path styling (#16762) Docker: Add phpmyadmin to the docker-composer.yml (#16806) ...
…and restrict input (#16542) * [not verified] Settings: Recognize valid Akismet keys set in wp-config.php and restrict input * Add text domain for 'valid key set' copy

Fixes #8226.
Changes proposed in this Pull Request:
Jetpack product discussion
See #8226.
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
How to globally define an Akismet API key:
wp-config.phpfile, add the following line:define( 'WPCOM_API_KEY', 'your api key' );whereyour api keyis your desired API key.To test changes in this PR:
To test for regressions:
Screenshot (After)
Proposed changelog entry for your changes: