at path:
ROOT
/
wp-content
/
plugins
/
jetpack
/
3rd-party
/
wpcom-reader.php
run:
R
W
Run
debug-bar
DIR
2026-04-17 06:07:54
R
W
Run
3rd-party.php
2.9 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
amp.php
792 By
2026-04-17 06:07:54
R
W
Run
Delete
Rename
atomic.php
1.04 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
bbpress.php
2.08 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
beaverbuilder.php
524 By
2026-04-17 06:07:54
R
W
Run
Delete
Rename
bitly.php
1 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
buddypress.php
550 By
2026-04-17 06:07:54
R
W
Run
Delete
Rename
class-domain-mapping.php
4.17 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
class-jetpack-bbpress-rest-api.php
4.39 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
class.jetpack-amp-support.php
16 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
creative-mail.php
3.26 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
debug-bar.php
780 By
2026-04-17 06:07:54
R
W
Run
Delete
Rename
jetpack-backup.php
2.75 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
jetpack-boost.php
2.8 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
qtranslate-x.php
681 By
2026-04-17 06:07:54
R
W
Run
Delete
Rename
vaultpress.php
2.15 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
web-stories.php
979 By
2026-04-17 06:07:54
R
W
Run
Delete
Rename
woocommerce-services.php
3.45 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
woocommerce.php
3.82 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
wpcom-reader.php
1.79 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
wpml.php
1.64 KB
2026-04-17 06:07:54
R
W
Run
Delete
Rename
error_log
up
📄
wpcom-reader.php
Save
<?php /** * This provides minor tweaks to improve the experience for Jetpack feed in the WordPress.com Reader. * * This does not make sites available in the Reader—that depends on the public access to /feed/ as a method on the WP.com side * to check if a site is public. It also does not add any content to the feed. Any content that should not be displayed in the Reader * or other RSS readers should be filtered out elsewhere. * * These hooks were originally part of the now-deprecated Enhanced Distribution. * * @since 13.3 * @package Automattic/jetpack */ use Automattic\Jetpack\Connection\Manager as Connection_Manager; use Automattic\Jetpack\Status; use Automattic\Jetpack\Status\Host; if ( ! defined( 'ABSPATH' ) ) { exit( 0 ); } foreach ( array( 'rss_head', 'rss1_head', 'rss2_head' ) as $rss_head_action ) { add_action( $rss_head_action, 'jetpack_wpcomreader_feed_id' ); } foreach ( array( 'rss_item', 'rss1_item', 'rss2_item' ) as $rss_item_action ) { add_action( $rss_item_action, 'jetpack_wpcomreader_post_id' ); } /** * Output feed identifier based on blog ID. * * @return void */ function jetpack_wpcomreader_feed_id() { if ( ( new Host() )->is_wpcom_simple() || ( ( new Connection_Manager() )->is_connected() && ! ( new Status() )->is_offline_mode() ) ) { $blog_id = Connection_Manager::get_site_id( true ); // Silence since we're not wanting to handle the error state. if ( ! $blog_id ) { return; } printf( '<site xmlns="com-wordpress:feed-additions:1">%d</site>', (int) $blog_id ); } } /** * Output feed item identifier based on current post ID. * * @return void */ function jetpack_wpcomreader_post_id() { $id = get_the_ID(); if ( ! $id ) { return; } printf( '<post-id xmlns="com-wordpress:feed-additions:1">%d</post-id>', (int) $id ); }