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

Update copyright footer text #481

Merged
merged 2 commits into from
Mar 19, 2020
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 .dev/tests/php/test-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ function testGetInvalidFooterVariation() {
*/
function testGetDefaultCopyright() {

$this->assertEquals( 'WordPress Theme by GoDaddy', Go\Core\get_default_copyright() );
$this->assertEquals( 'Test Blog', Go\Core\get_default_copyright() );

}

Expand Down
4 changes: 2 additions & 2 deletions .dev/tests/php/test-template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ public function test_footer_variation_no_preview() {
return $args;
} );

$this->expectOutputRegex( '/WordPress Theme by GoDaddy/' );
$this->expectOutputRegex( '/Test Blog/' );

Go\footer_variation();

Expand Down Expand Up @@ -911,7 +911,7 @@ public function test_has_footer_background() {
*/
public function test_copyright() {

$this->expectOutputRegex( '/WordPress Theme by GoDaddy/' );
$this->expectOutputRegex( '/Test Blog/' );

Go\copyright();

Expand Down
2 changes: 1 addition & 1 deletion includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ function get_default_copyright() {
* @param string $copyright The default text for copyright.
*/
/* translators: the theme author */
return (string) apply_filters( 'go_default_copyright', sprintf( esc_html__( 'WordPress Theme by %s', 'go' ), 'GoDaddy' ) );
return (string) apply_filters( 'go_default_copyright', get_bloginfo( 'name' ) );

}

Expand Down
2 changes: 1 addition & 1 deletion includes/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function copyright( $args = array() ) {
)
);

$year = sprintf( '© %s ', esc_html( gmdate( 'Y' ) ) );
$year = sprintf( '© %s', esc_html( gmdate( 'Y' ) ) );
$copyright = get_theme_mod( 'copyright', \Go\Core\get_default_copyright() );

$html = array(
Expand Down