Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

use Automattic\Jetpack\Boost_Core\Contracts\Boost_API_Client;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* A class that handles the Boost API client.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
use Automattic\Jetpack\Boost_Core\Lib\Cacheable;
use Automattic\Jetpack\Boost_Core\Lib\Url;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Class Speed_Score_Request
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


4 changes: 4 additions & 0 deletions projects/packages/classic-theme-helper/src/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

use WP_Error;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Classic Theme Helper Loader.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* @package automattic/jetpack-classic-theme-helper
*/

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Content Options.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
use Automattic\Jetpack\Redirect;
use Automattic\Jetpack\Status\Host;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

if ( ! function_exists( 'jetpack_load_custom_post_types' ) ) {
/**
* Load Portfolio, Testimonial, and Nova CPT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

namespace Automattic\Jetpack\Classic_Theme_Helper;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

if ( ! class_exists( __NAMESPACE__ . '\Jetpack_Testimonial_Textarea_Control' ) ) {
/**
* Extends the WP_Customize_Control class to clean the textarea content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

namespace Automattic\Jetpack\Classic_Theme_Helper;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

if ( ! class_exists( __NAMESPACE__ . '\Jetpack_Testimonial_Title_Control' ) ) {
/**
* Extends the WP_Customize_Control class to clean the title parameter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* @package automattic/jetpack-classic-theme-helper
*/

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

$host = new Automattic\Jetpack\Status\Host();
if ( ! function_exists( 'jetpack_breadcrumbs' ) && ! $host->is_wpcom_simple() ) {
/**
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/classic-theme-helper/src/social-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* @package automattic/jetpack-classic-theme-helper
*/

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

if ( ! function_exists( 'jetpack_social_menu_init' ) ) {
/**
* Activate the Social Menu plugin.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
use Automattic\Jetpack\Assets;
use Automattic\Jetpack\Connection\Manager as Connection_Manager;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Whether the current user is connected to WordPress.com.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


4 changes: 4 additions & 0 deletions projects/packages/image-cdn/src/compatibility/activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

use Automattic\Jetpack\Image_CDN\Image_CDN;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Hook the compatibility functions into ActivityPub filters if necessary.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

namespace Automattic\Jetpack\Masterbar;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Class Domain_Only_Admin_Menu.
*/
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/masterbar/src/admin-menu/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
use Automattic\Jetpack\Status\Host;
use Automattic\Jetpack\Tracking;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Checks whether the navigation customizations should be performed for the given class.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

namespace Automattic\Jetpack\Masterbar;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Class CSS_Nudge_Customize_Control
*/
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/masterbar/src/profile-edit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

use Automattic\Jetpack\Connection\Manager as Connection_Manager;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

require_once __DIR__ . '/class-wpcom-user-profile-fields-revert.php';

/**
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/masterbar/src/profile-edit/profile-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use Automattic\Jetpack\Connection\Manager as Connection_Manager;
use WP_User;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Hides profile fields for WordPress.com connected users.
*
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/masterbar/src/wp-posts-list/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

namespace Automattic\Jetpack\Masterbar;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Load the Posts_List_Notification.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


4 changes: 4 additions & 0 deletions projects/packages/protect-status/src/class-protect-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
use Jetpack_Options;
use WP_Error;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Class that handles fetching and caching the Status of vulnerabilities check from the WPCOM servers
*/
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/protect-status/src/class-scan-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
use Jetpack_Options;
use WP_Error;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Class that handles fetching of threats from the Scan API
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


4 changes: 4 additions & 0 deletions projects/packages/videopress/src/utility-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

use Automattic\Jetpack\Connection\Client;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

defined( 'VIDEOPRESS_MIN_WIDTH' ) || define( 'VIDEOPRESS_MIN_WIDTH', 60 );
defined( 'VIDEOPRESS_DEFAULT_WIDTH' ) || define( 'VIDEOPRESS_DEFAULT_WIDTH', 640 );

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Prevent PHP errors by limiting direct access to files.


Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use Automattic\Jetpack\Redirect;
use Automattic\Jetpack\Waf\Blocked_Login_Page;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Brute Force Protection Blocked Login Page class.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Prevent PHP errors by limiting direct access to files.


Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
use Automattic\Jetpack\Blocks;
use Automattic\Jetpack\Status\Request;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

/**
* Registers the block for use in Gutenberg
* This is done via an action so that we can disable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
use Jetpack_Gutenberg;
use Jetpack_Top_Posts_Helper;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

if ( ! class_exists( 'Jetpack_Top_Posts_Helper' ) ) {
require_once JETPACK__PLUGIN_DIR . '/_inc/lib/class-jetpack-top-posts-helper.php';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

use Automattic\Jetpack\VideoPress\Initializer as VideoPress_Pkg_Initializer;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

// Set the videopress/video block availability, depending on the site plan.
add_action(
'jetpack_register_gutenberg_extensions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
use Automattic\Jetpack\Status;
use Automattic\Jetpack\Status\Host;

if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}

// Feature name.
const FEATURE_NAME = 'ai-content-lens';

Expand Down
Loading