Skip to content

Commit 33b4bb6

Browse files
tbradshamatticbot
authored andcommitted
Prevent PHP fatals when directly accessing files, round 9 (#45537)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/18653099953 Upstream-Ref: Automattic/jetpack@f377106
1 parent fca8b8b commit 33b4bb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utility-functions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
use Automattic\Jetpack\Connection\Client;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit( 0 );
7+
}
8+
59
defined( 'VIDEOPRESS_MIN_WIDTH' ) || define( 'VIDEOPRESS_MIN_WIDTH', 60 );
610
defined( 'VIDEOPRESS_DEFAULT_WIDTH' ) || define( 'VIDEOPRESS_DEFAULT_WIDTH', 640 );
711

0 commit comments

Comments
 (0)