Skip to content

Commit a6545e2

Browse files
committed
removes the old repo links
add "if ( ! defined( 'ABSPATH' ) ) exit;" as requested by the plugin review team
1 parent b7780aa commit a6545e2

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
clone the project into your plugin folder:
1919

2020
```shell
21-
git clone https://github.com/erikyo/typescript-wp-block.git
21+
git clone https://github.com/your-username/typescript-wp-block.git
2222
```
2323
Then:
2424
- Rename the plugin folder with the chosen plugin name slug

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"Erik Golinelli <[email protected]> (https://codekraft.it/)",
77
"John Hooks <[email protected]> (https://johnhooks.io/)"
88
],
9-
"homepage": "https://github.com/erikyo/typescript-wp-block#readme",
9+
"homepage": "https://github.com/wp-blocks/typescript-wp-block#readme",
1010
"repository": {
1111
"type": "git",
12-
"url": "https://github.com/erikyo/typescript-wp-block.git"
12+
"url": "https://github.com/wp-blocks/typescript-wp-block.git"
1313
},
14-
"bugs": "https://github.com/erikyo/typescript-wp-block/issues",
14+
"bugs": "https://github.com/wp-blocks/typescript-wp-block/issues",
1515
"license": "GPL-2.0-or-later",
1616
"main": "./build/boilerplate.js",
1717
"typings": "./build/main.d.ts",

typescript-wp-block.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
22
/**
33
* Plugin Name: Typescript WP Block Boilerplate
4-
* Plugin URI: https://github.com/erikyo/typescript-wp-block
4+
* Plugin URI: https://github.com/wp-blocks/typescript-wp-block
55
* Description: WordPress block boilerplate in typescript
66
* Version: 0.0.1
77
* Author: codekraft
88
*/
99

10+
if ( ! defined( 'ABSPATH' ) ) exit;
11+
1012
add_action( 'init', function() {
1113
register_block_type( __DIR__ );
1214
} );

0 commit comments

Comments
 (0)