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

Standardize Distributed Alert Copy #696

Merged
merged 2 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/gutenberg-syndicated-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if ( '0' !== dtGutenberg.originalSourceId || '0' !== dtGutenberg.originalBlogId
if ( parseInt( dtGutenberg.originalDelete ) ) {
message = wp.i18n.sprintf( wp.i18n.__( 'This %1$s was distributed from %2$s. However, the original has been deleted.' ), dtGutenberg.postTypeSingular, dtGutenberg.originalLocationName );
} else if ( ! parseInt( dtGutenberg.unlinked ) ) {
message = wp.i18n.sprintf( wp.i18n.__( 'Distributed from %s. The original will update this unless you', 'distributor' ), dtGutenberg.originalLocationName );
message = wp.i18n.sprintf( wp.i18n.__( 'Distributed from %s. The original will update this version unless you', 'distributor' ), dtGutenberg.originalLocationName );

actions.push( {
label: wp.i18n. __( 'unlink from original.', 'distributor' ),
Expand Down
2 changes: 1 addition & 1 deletion tests/wpacceptance/DistributedPostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testDistributedFrom() {

// Make sure we see distributed status admin notice and that it shows as linked
if ( $editor_has_blocks ) {
$I->seeText( 'Distributed from Site One. The original will update this unless youunlink from original.View Original', '.components-notice__content' );
$I->seeText( 'Distributed from Site One. The original will update this version unless you unlink from original.View Original', '.components-notice__content' );
$element = $I->getElement( '.components-notice__action' );
$I->seeText( 'unlink from original.', '.components-notice__action' );
} else {
Expand Down