Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
prevent direct file access
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Sep 11, 2014
1 parent 0f947e8 commit 90b9ce9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widget-boilerplate/plugin.php
Expand Up @@ -23,6 +23,11 @@
* Domain Path: /lang
* GitHub Plugin URI: https://github.com/<owner>/<repo>
*/

// Prevent direct file access
if ( ! defined ( 'ABSPATH' ) ) {
exit;
}

// TODO: change 'Widget_Name' to the name of your plugin
class Widget_Name extends WP_Widget {
Expand Down

0 comments on commit 90b9ce9

Please sign in to comment.