Make WordPress Core

Opened 8 years ago

Closed 5 years ago

#37089 closed defect (bug) (invalid)

Plugins cannot remove site title from login page

Reported by: morrisjm's profile morrisjm Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords:
Focuses: administration Cc:

Description

One-line summary: please add support on wp-login.php for modifying/removing the title there

Details:

I encountered what appeared to be a bug with a "Coming Soon" plugin that really appears to be bug (or maybe it's a feature request; lack of seemingly basic functionality) with wp-login.php.

Here's my original request to a "coming soon" plugin developer, SeedProd:

"The site title still shows up on the login page when this 'coming-soon' plugin is active and the user is not logged in. So let's say the site title is 'Foo.com, the best new bar widget' and you wanted to keep it a secret until launch that foo.com sells bar widgets. Any Joe Q. Public can go to foo.com/wp-login and see the site title and learn that you're selling bar widgets. I would expect a 'coming soon' plugin to remove the site title from being displayed on the login page when the user is not logged in."

The developer responded "I checked the wp-login.php template and the title is hard coded in the page. No way to filter it out. If you don't want people to know the title in the site just change or remove your title in the WordPress settings until you go live."

It seems reasonable to expect a developer would be able to make a WP "coming soon" plugin that makes the site title completely non-public. "Just don't add your site title until going live" is not a good workaround since that's a core part of demo'ing the site to internal users (I can't be like "here's your new site except I can't add the name of it until launch").

Change History (5)

#1 @lukecavanagh
8 years ago

So the site URL would be hidden if a site was in a coming soon mode?

Or do you mean something else.

#2 @lukecavanagh
8 years ago

There are already quite a few ways to rename wp-login.php to its own custom URL.

#3 @morrisjm
8 years ago

Not asking to move the URL. The site title or site name shows up in the content of wp-login.php, as a link in the form "back to [site title]". It's in the element

<p id="backtoblog">

The Seedprod coming-soon plugin dev says "the title is hard coded in the page. No way to filter it out". So I'm asking for whatever a plugin dev would need to adjust/remove the content that shows up in that backtoblog <p> tag on wp-login.php

#4 @ocean90
8 years ago

  • Keywords close added
  • Version trunk deleted

You can remove the link with CSS/JS via the #backtoblog ID or you can filter the name with the bloginfo filter:

<?php
add_filter( 'bloginfo', function( $output, $show ) {
        if ( 'title' === $show ) {
                return 'top secret';
        }

        return $output;
}, 10, 2);

#5 @desrosj
5 years ago

  • Keywords close removed
  • Resolution set to invalid
  • Status changed from new to closed

Closing this out as the requested functionality is already possible.

Note: See TracTickets for help on using tickets.