Skip to content

Commit

Permalink
Finaly v1 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tstokes8040 committed Mar 28, 2023
1 parent bc96dc6 commit 80a720e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
# security-txt
# Security-TXT Plugin

This plugin creates a security.txt file in the WordPress installation root. You can edit/add to this file within the WordPress SecurityTXT settings page. The purpose of the security.txt file is to allow users to properly disclose security vulnerabilities or bugs to you. This is best practice and a standard.

## Installation

Build for npm is coming soon. This will happen with a new release to make the admin page look better.

Install packages
```bash
npm install
```

Compile SCSS
```bash
npm run build
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

## License

GPLv3 or later
1 change: 1 addition & 0 deletions admin/scss/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/**Future styles here **/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "security-txt",
"version": "0.0.1",
"version": "1.0.0",
"author": "Tyler Stokes <[email protected]>",
"license": "GPLv3 or later",
"main": "security-txt.php",
Expand Down
9 changes: 5 additions & 4 deletions security-txt.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
* Description: Creates a security.txt file with contact info.
* Plugin Name: Security TXT
* Plugin URI:
* Version: 0.0.1
* @author Tyler Stokes
* @license GPLv3 or later
* Version: 1.0.0
* Author: Tyler Stokes
* Author URI: https://tswebservices.com/
* License: GPLv3 or later
* Text Domain: securitytxt
* PHP Version: 7.0
*/
Expand Down Expand Up @@ -87,7 +88,7 @@ function st_maybe_delete_options() {
add_action( 'admin_menu', 'st_menu_item' );
if ( ! function_exists('st_menu_item') ) {
function st_menu_item() {
add_submenu_page( 'tools.php', 'Security TXT', 'Security-TXT Options', 'manage_options', 'security-txt', 'securitytxt_form_func' );
add_submenu_page( 'tools.php', 'Security TXT', 'Security TXT', 'manage_options', 'security-txt', 'securitytxt_form_func' );
add_action( 'admin_init', 'register_securitytxt_settings' );
}
}
Expand Down

0 comments on commit 80a720e

Please sign in to comment.