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

Change copyright text and relevant tests to "Go by GoDaddy" #681

Closed
wants to merge 1 commit into from

Conversation

ehamwey
Copy link
Contributor

@ehamwey ehamwey commented Jun 16, 2021

Reverts changes in #481 to include GoDaddy copyright in footer, as well as updates tests to check for the proper text.

@ehamwey ehamwey added the [Status] Needs Review Tracking pull requests that need another set of eyes label Jun 16, 2021
@fjarrett-godaddy fjarrett-godaddy added the [Status] Do Not Merge Issues/PRs that should not be merged (yet) label Jun 16, 2021
@@ -1127,7 +1127,7 @@ function get_default_copyright() {
* @param string $copyright The default text for copyright.
*/
/* translators: the theme author */
return (string) apply_filters( 'go_default_copyright', get_bloginfo( 'name' ) );
return (string) apply_filters( 'go_default_copyright', sprintf( esc_html__( 'Go by %s', 'go' ), 'GoDaddy' ) );
Copy link
Contributor

Choose a reason for hiding this comment

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

@ehamwey I don't think we need to pass this string through esc_html__() since its just a helper method for retrieving the copyright text. Generally it should be sanitized on output, which we're doing in certain places around Go.

We can probably just stick to sprintf( __( 'Go by %s', 'go' ), 'GoDaddy' ).

'sanitize_callback' => __NAMESPACE__ . '\\copyright_kses_html',

<?php echo wp_kses( $copyright, get_copyright_kses_html() ); ?>

@ehamwey ehamwey closed this Jun 17, 2021
@cypress
Copy link

cypress bot commented Jun 29, 2021



Test summary

14 0 0 0


Run details

Project Go
Status Passed
Commit e6af76b
Started Jun 29, 2021 8:51 PM
Ended Jun 29, 2021 8:53 PM
Duration 01:35 💡
OS Linux Debian - 10.10
Browser Chrome 91

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Do Not Merge Issues/PRs that should not be merged (yet) [Status] Needs Review Tracking pull requests that need another set of eyes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants