Skip to content

Commit

Permalink
removes the old repo links
Browse files Browse the repository at this point in the history
add "if ( ! defined( 'ABSPATH' ) ) exit;" as requested by the plugin review team
  • Loading branch information
erikyo committed Jan 7, 2024
1 parent b7780aa commit a6545e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
clone the project into your plugin folder:

```shell
git clone https://github.com/erikyo/typescript-wp-block.git
git clone https://github.com/your-username/typescript-wp-block.git
```
Then:
- Rename the plugin folder with the chosen plugin name slug
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"Erik Golinelli <[email protected]> (https://codekraft.it/)",
"John Hooks <[email protected]> (https://johnhooks.io/)"
],
"homepage": "https://github.com/erikyo/typescript-wp-block#readme",
"homepage": "https://github.com/wp-blocks/typescript-wp-block#readme",
"repository": {
"type": "git",
"url": "https://github.com/erikyo/typescript-wp-block.git"
"url": "https://github.com/wp-blocks/typescript-wp-block.git"
},
"bugs": "https://github.com/erikyo/typescript-wp-block/issues",
"bugs": "https://github.com/wp-blocks/typescript-wp-block/issues",
"license": "GPL-2.0-or-later",
"main": "./build/boilerplate.js",
"typings": "./build/main.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion typescript-wp-block.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?php
/**
* Plugin Name: Typescript WP Block Boilerplate
* Plugin URI: https://github.com/erikyo/typescript-wp-block
* Plugin URI: https://github.com/wp-blocks/typescript-wp-block
* Description: WordPress block boilerplate in typescript
* Version: 0.0.1
* Author: codekraft
*/

if ( ! defined( 'ABSPATH' ) ) exit;

add_action( 'init', function() {
register_block_type( __DIR__ );
} );

0 comments on commit a6545e2

Please sign in to comment.