Skip to content

Commit b593f6f

Browse files
committed
chore: fix plugin check errors and warnings
1 parent 8aaed5a commit b593f6f

9 files changed

Lines changed: 79 additions & 696 deletions

.distignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.DS_Store
77
_playground
88
_wordpress-org
9-
composer.json
109
composer.lock
1110
node_modules
1211
package.json

LICENSE

Lines changed: 21 additions & 674 deletions
Large diffs are not rendered by default.

inc/admin/class-enqueue-scripts.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
defined( 'ABSPATH' ) || exit;
23

34
/**
45
* This class handles registering and enqueueing scripts and styles.

inc/admin/class-register-post-type.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
defined( 'ABSPATH' ) || exit;
23

34
/**
45
* This class defines a custom post type for creating and managing blueprint.
@@ -24,20 +25,20 @@ public function __construct()
2425
public function register_blueprint_post_type()
2526
{
2627
$labels = [
27-
'name' => __('Blueprints'),
28-
'singular_name' => __('Blueprint'),
29-
'menu_name' => __('Blueprints'),
30-
'name_admin_bar' => __('Blueprint'),
31-
'add_new' => __('Add New Blueprint', 'blueprint'),
32-
'add_new_item' => __('Add New Blueprint'),
33-
'new_item' => __('New Blueprint'),
34-
'edit_item' => __('Edit Blueprint'),
35-
'view_item' => __('View Blueprint'),
36-
'all_items' => __('All Blueprints'),
37-
'search_items' => __('Search Blueprints'),
38-
'parent_item_colon' => __('Parent Blueprints:'),
39-
'not_found' => __('No blueprints found.'),
40-
'not_found_in_trash' => __('No blueprints found in Trash.')
28+
'name' => __('Blueprints', 'visual-blueprint-builder'),
29+
'singular_name' => __('Blueprint', 'visual-blueprint-builder'),
30+
'menu_name' => __('Blueprints', 'visual-blueprint-builder'),
31+
'name_admin_bar' => __('Blueprint', 'visual-blueprint-builder'),
32+
'add_new' => __('Add New Blueprint', 'visual-blueprint-builder'),
33+
'add_new_item' => __('Add New Blueprint', 'visual-blueprint-builder'),
34+
'new_item' => __('New Blueprint', 'visual-blueprint-builder'),
35+
'edit_item' => __('Edit Blueprint', 'visual-blueprint-builder'),
36+
'view_item' => __('View Blueprint', 'visual-blueprint-builder'),
37+
'all_items' => __('All Blueprints', 'visual-blueprint-builder'),
38+
'search_items' => __('Search Blueprints', 'visual-blueprint-builder'),
39+
'parent_item_colon' => __('Parent Blueprints:', 'visual-blueprint-builder'),
40+
'not_found' => __('No blueprints found.', 'visual-blueprint-builder'),
41+
'not_found_in_trash' => __('No blueprints found in Trash.', 'visual-blueprint-builder')
4142
];
4243

4344
$args = [

inc/admin/class-register-steps.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
defined( 'ABSPATH' ) || exit;
23

34
/**
45
* This class defines a custom blueprint steps.

inc/admin/register-meta.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
defined( 'ABSPATH' ) || exit;
23

34
/**
45
* This class for registering a custom meta fields for block editor for playground blueprint.

inc/functions.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
defined( 'ABSPATH' ) || exit;
23

34
/**
45
* Filters the list of allowed block types in the block editor.
@@ -83,23 +84,23 @@ function add_new_block_category($block_categories, $block_editor_context)
8384
$steps_categories = [
8485
[
8586
'slug' => 'config',
86-
'title' => esc_html__('Config', 'wp-playground-blueprint-editor')
87+
'title' => esc_html__('Config', 'visual-blueprint-builder')
8788
],
8889
[
8990
'slug' => 'extend',
90-
'title' => esc_html__('Extend', 'wp-playground-blueprint-editor'),
91+
'title' => esc_html__('Extend', 'visual-blueprint-builder'),
9192
],
9293
[
9394
'slug' => 'file-system',
94-
'title' => esc_html__('File System', 'wp-playground-blueprint-editor')
95+
'title' => esc_html__('File System', 'visual-blueprint-builder')
9596
],
9697
[
9798
'slug' => 'data',
98-
'title' => esc_html__('Data', 'wp-playground-blueprint-editor')
99+
'title' => esc_html__('Data', 'visual-blueprint-builder')
99100
],
100101
[
101102
'slug' => 'scripts',
102-
'title' => esc_html__('Scripts', 'wp-playground-blueprint-editor')
103+
'title' => esc_html__('Scripts', 'visual-blueprint-builder')
103104
],
104105
];
105106

readme.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
=== Visual Blueprint Builder ===
2+
Contributors: lubus
3+
Tags: playground, blueprint, block editor
4+
Requires at least: 6.4
5+
Tested up to: 6.5
6+
Requires PHP: 7.4
7+
Stable tag: 1.0.0
8+
License: MIT
9+
License URI: https://opensource.org/licenses/MIT
10+
11+
Design playground blueprints with a specialized block editor interface in WordPress.
12+
13+
== Description ==
14+
15+
Visual Blueprint Builder is block based editing experience for building blueprint.json
16+
17+
### Features
18+
19+
- UI based json generation
20+
- blocks to build steps
21+
- Preview blueprint in playground
22+
- download blueprint.json
23+
- copy json code
24+
25+
== Installation ==
26+
27+
1. Download latest release from GitHub
28+
2. Visit `Plugins > Add New`
29+
3. Upload `visual-blueprint-builder.zip` file
30+
4. Activate `Visual Blueprint Builder` from plugins page

visual-blueprint-builder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Author: Lubus
99
* Author URI: https://lubus.in/
1010
* Contributor: Lubus, https://lubus.in/
11+
* License: MIT
12+
* License URI: https://opensource.org/licenses/MIT
1113
* Text Domain: visual-blueprint-builder
1214
* Domain Path: /languages
1315
*
@@ -62,7 +64,7 @@ public function __construct()
6264
{
6365
$this->setup_constants();
6466
$this->bootstrap();
65-
$this->load_textdomain();
67+
add_action('init', [$this, 'load_textdomain']);
6668
}
6769

6870
/**
@@ -115,7 +117,7 @@ public function load_textdomain()
115117
load_plugin_textdomain(
116118
'visual-blueprint-builder',
117119
false,
118-
dirname(plugin_basename(__FILE__)) . '/languages'
120+
dirname(plugin_basename(VBB_PLUGIN_FILE)) . '/languages'
119121
);
120122
}
121123
}

0 commit comments

Comments
 (0)