Plugin Directory

Changeset 3311209


Ignore:
Timestamp:
06/13/2025 06:10:41 PM (10 months ago)
Author:
multinetgmbh
Message:

Update tested up to version, typo

Location:
simple-cleanup
Files:
11 added
3 edited

Legend:

Unmodified
Added
Removed
  • simple-cleanup/trunk/readme.txt

    r3176772 r3311209  
    44Donate link: https://multinet.ch
    55Requires at least: 5.0
    6 Tested up to: 6.6.2
     6Tested up to: 6.8.1
    77Requires PHP: 7.0
    8 Stable tag: 0.3
     8Stable tag: 0.4
    99License: GNU GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2121
    2222== Changelog ==
     23= 0.4 =
     24* Also remove feed tags
    2325= 0.3 =
    2426* Also remove "Edit comments" icon from admin bar
  • simple-cleanup/trunk/src/ActionHandler.php

    r2303234 r3311209  
    1818                remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
    1919                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)
    2028            } );
    2129        }
  • simple-cleanup/trunk/src/OptionsPageHandler.php

    r2214219 r3311209  
    9696            'name'        => 'remove_blog_clients',
    9797            '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' ),
    98107        ] );
    99108
Note: See TracChangeset for help on using the changeset viewer.