Skip to content

Commit bd9dc1c

Browse files
added abspath check
1 parent 3bbae4c commit bd9dc1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
along with this program; if not, write to the Free Software
2626
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2727
*/
28+
if ( ! defined( 'ABSPATH' ) ) {
29+
exit; // Exit if accessed directly.
30+
}
2831
if ( ! class_exists( 'RichSnippets' ) ) {
2932
/**
3033
* RichSnippets

0 commit comments

Comments
 (0)