AHello Dolly that did things like the above, using the latest APIs and with everything documented, would also be a good candidate for a canonical/reference plugin, as string manipulation and text insertion are two of the most common things people do to extend/customize WP.
I support both thoughts I'm seeing. There is certainly a place for solid, clear, easily understood examples of plugins that are in Wordpress by default to demonstrate how a plugin is written and provide a basis for creating new plugins.
I know I am in the same boat as ramiy though. I delete the Hello Dolly plugin after every installation. And code that is there, even if it's not an activated plugin, is a potential target for finding and exploiting vulnerabilities.
To best address this, we need a measure of how often Hello Dolly and, to be fair, the Akismet plugin is actually activated.
ramiy -- I always use a custom wp-content folder, which has the advantage that the default plugins don't reflect what I see in the Admin. ;-) (By keeping my wp-content and wp-config.php outside the WordPress folder, updates are easier because I can just kill the whole wp folder and replace it wholesale.)
(I wish I could edit my own comments in Trac!) In the prior comment, I meant to say that since the vast majority of WordPress users are just users, not module developers, this module is almost always useless cruft.
People seem really focused on Hello Dolly as an example plugin for plugin developers. I know that's a discussion worth having (code standards, best examples, etc), but it's not the reason I think it should stay bundled. We have an example post, example page, and example comment for USERS to see where things fit into their admin tool. If Hello Dolly (example plugin) was unbundled (eventually Akismet will be unbundled and become a core plugin), then new users would not see an example on the plugin management screen. I wouldn't want to put a super-functional plugin in that place, because the whole point of example content is give them something to experiment with. If someone wants to keep Hello Dolly, more power to them, but to me the value of it is that is a very simple way for a new user to see how activating a plugin can affect their site and that way it appears in the plugin management screen.
Rude comments aside, novasource has made an excellent point: The lyrics to the song "Hello Dolly" are almost certainly still under copyright, which would make it illegal for WordPress.org to include it without permission.
Wait a tick.. I thought WP was geared towards users.. why is there a developer's plugin bundled automatically? Can't this plugin just be referenced in the Codex where people normally go when they want to start learning how to make a plugin? I'm just trying to make sense of this here.
@janeforshort - I see your point, but if no plugins are listed - then there should be an introduction text put in it's place explaining what plugins are. Posts / Pages are included by default for good reason, I agree with that. I don't agree with Hello Dolly itself being included for the reason of seeing something listed there, there's an "Add New" link there for a reason. There could easily be a link to "Add Hello Dolly" which would open up a thickbox with the Hello Dolly info (like the Add New plugins page has) so the user could install.
@sc0ttkclark: I'm saying that the way we treat examples in the admin should be consistent. I'm up for discussion about example content/new user guided tour pros and cons. I think our example content has problems in general, witness the number of results you get if you search for "This is an example of a WordPress page" or "Hi, this is a comment" on Google. However, I don't think unbundling Hello Dolly has much to do with that. As long as we have "Hi, this is a comment," I think Hello Dolly is a good little example plugin. Users can turn it on, see that it does something, turn it off, see that it doesn't do it anymore. Plugin functionality exemplified.
@jane - I definetely understand, however, why can't this data be optional? It could be enabled by default in installation, but should have a disable option in which could attempt to delete Hello Dolly, and not insert the sample data. Thoughts? I suppose that woul be another ticket ;)
I never really thought about it until I saw a related ticket come through. I think this plugin has served its purpose over the years and can now be phased out. Learning to code a plugin could be handled under the Learn Team or some other documentation resource.
It is insane that this thread is 13 years old and the plugin continues to be forced on hundreds of millions of users. It is not a teaching plugin, and even if it were, it belongs elsewhere, and/or the name needs to be changed to reflects it being a teaching plugin. Please respect users' time. Don't force plugins on users.
Who makes the decisions on these things? Is there a webpage that describes how WordPress core decisions are made? Do the comments of a disgruntled founder 13 years ago override common sense and the preferences of the masses? I hereby submit a request that an official vote take place on the fate of forcing Hello Dolly onto new WordPress installs.
It's time to remove the Hello Dolly plugin from the WordPress core. After being present for so many years, it no longer serves a purpose. Although it may have been useful for plugin developers in the past, there is now an abundance of documentation available online to guide them. It's highly unlikely that any plugin developer still relies on the Hello Dolly plugin to create their own. This ticket has been open for over 14 years, and it's baffling that no action has been taken. Let's take the necessary step to remove this plugin and move forward.
The problem is that hello.php (Hello Dolly) plays a vital role in WordPress's testing (PHPUnit) to ensure proper plugin activation, deactivation, and various other functions. Therefore, removing Hello Dolly entirely would be a challenging task. However, a potential solution is to replace it with a plugin called something like "default.php". This plugin would exist solely in development and would not affect production. It would serve as an empty placeholder that would allow for the removal of Hello Dolly without disrupting testing procedures. We need someone to take the initiative and create a pull request for the complete removal of Hello Dolly and with a fix for the tests.
3a8082e126