plugin-icon

Remove WordPress to WordPress filter

This turns off the default filter that changes all instances of "Wordpress" to "WordPress".
Bewertungen
5
Zuletzt aktualisiert
April 9, 2021
Version
1.3
Aktive Installationen
40

In WordPress 3.0 and later, a default filter changes all instances of „WordPress“ (note the small „p“) in posts, titles, and comments to „WordPress“. For various reasons, such as preserving spelling in existing posts and comments, a blog owner may want to turn this filter off. That is what this plugin does.

Simply upload the plugin files to your WordPress plugins folder, activate it on your blog’s Plugin administration page, and you are set!

Technische Details

This plugin seeks to disable the capital_P_dangit function, which is the WordPress function that disallows „WordPress“ to be used on blogs.

The filter is defined in wp-includes/default-filters.php and is applied in wp-includes/formatting.php of the core WordPress code.

The remove_filter function is used in this plugin to undo the add_filter function applied in wp-includes/formatting.php. In versions 1.0 and 1.1 of this plugin, the function was removed for certain priority levels. As of version 1.2, this plugin removes the filter for all possible priority levels. Thanks to Matt Robinson for suggesting this method and providing code that is used in the plugin.

For more information regarding how this function is applied in WordPress, the following are the relevant changesets to the core WordPress code regarding this function:

Kostenlosmit dem Creator-Tarif
Mit deiner Installation stimmst du den Geschäftsbedingungen von WordPress.com sowie den Bedingungen für Drittanbieter-Plugins zu.
Aktive Installationen
40
Getestet bis
5.7.12
Dieses Plugin steht zum Download zur Verfügung, um in deiner selbst gehosteten WordPress-Installation verwendet zu werden.