Changeset 3311209
- Timestamp:
- 06/13/2025 06:10:41 PM (10 months ago)
- Location:
- simple-cleanup
- Files:
-
- 11 added
- 3 edited
-
tags/0.4 (added)
-
tags/0.4/languages (added)
-
tags/0.4/languages/multinet-simple-cleanup-de_CH.mo (added)
-
tags/0.4/languages/multinet-simple-cleanup-de_CH.po (added)
-
tags/0.4/languages/multinet-simple-cleanup.pot (added)
-
tags/0.4/multinet-simple-cleanup.php (added)
-
tags/0.4/readme.txt (added)
-
tags/0.4/src (added)
-
tags/0.4/src/ActionHandler.php (added)
-
tags/0.4/src/OptionsPageHandler.php (added)
-
tags/0.4/src/SimpleCleanup.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/ActionHandler.php (modified) (1 diff)
-
trunk/src/OptionsPageHandler.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-cleanup/trunk/readme.txt
r3176772 r3311209 4 4 Donate link: https://multinet.ch 5 5 Requires at least: 5.0 6 Tested up to: 6. 6.26 Tested up to: 6.8.1 7 7 Requires PHP: 7.0 8 Stable tag: 0. 38 Stable tag: 0.4 9 9 License: GNU GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 21 21 22 22 == Changelog == 23 = 0.4 = 24 * Also remove feed tags 23 25 = 0.3 = 24 26 * Also remove "Edit comments" icon from admin bar -
simple-cleanup/trunk/src/ActionHandler.php
r2303234 r3311209 18 18 remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); 19 19 remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 20 } ); 21 } 22 23 // Remove feed tags 24 if ( SimpleCleanup::getOption( 'remove_feed_tags' ) ) { 25 add_action( 'init', function () { 26 remove_action('wp_head', 'feed_links', 2); // Removes the general feed 27 remove_action('wp_head', 'feed_links_extra', 3); // Removes the extra feeds (e.g., comments feed) 20 28 } ); 21 29 } -
simple-cleanup/trunk/src/OptionsPageHandler.php
r2214219 r3311209 96 96 'name' => 'remove_blog_clients', 97 97 'description' => __( 'Removes the meta tags for xmlrpc.php and wlwmanifest.xml', 'multinet-simple-cleanup' ), 98 ] ); 99 100 // Remove feed tags 101 add_settings_field( "remove_feed_tags", __( "Remove feed tags", 'multinet-simple-cleanup' ), [ 102 OptionsPageHandler::class, 103 'checkbox' 104 ], "multinet-simple-cleanup", "multinet-simple-cleanup-section-frontend", [ 105 'name' => 'remove_feed_tags', 106 'description' => __( 'Removes the <link rel="alternate" type="application/rss+xml"> tags', 'multinet-simple-cleanup' ), 98 107 ] ); 99 108
Note: See TracChangeset
for help on using the changeset viewer.