質問編集履歴

2

ソースコード記載

2020/03/06 13:38

投稿

kansyashiori
kansyashiori

スコア5

test CHANGED
File without changes
test CHANGED
@@ -20,11 +20,19 @@
20
20
 
21
21
 
22
22
 
23
+ ※追記
24
+
25
+ 回答をいただきログインしたところ、ログインができなくなってしまいました。
26
+
27
+
28
+
23
29
  初めてのことで何をどうしたらいいのか分からず、解決していただくために必要なソースコードも提示出来ておりません。
24
30
 
25
31
 
26
32
 
33
+
34
+
27
- お手数をおかけしますがご教示いただけますでしょうか?
35
+ お手数をおかけしますが、「致命的なエラー」の解決方法と併せて、ログインができるよう対処方法もご教示いただけますでしょうか?
28
36
 
29
37
 
30
38
 
@@ -52,132 +60,126 @@
52
60
 
53
61
 
54
62
 
55
- ```ここに言語名を入力
56
-
57
- ```ここに言語を入力
63
+ <?php
64
+
58
-
65
+ if ( ! defined( 'ABSPATH' ) ) {
66
+
67
+ exit;
68
+
69
+ }
70
+
71
+
72
+
73
+ function quads_block_assets() { // phpcs:ignore
74
+
75
+ // Register block styles for both frontend + backend.
76
+
77
+ wp_register_style(
78
+
79
+ 'quads-style-css', // Handle.
80
+
81
+ plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ), // Block style CSS.
82
+
83
+ is_admin() ? array( 'wp-editor' ) : null, // Dependency to include the CSS after it.
84
+
85
+ null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.style.build.css' ) // Version: File modification time.
86
+
59
- コード
87
+ );
88
+
89
+
90
+
91
+ // Register block editor script for backend.
92
+
93
+ wp_register_script(
94
+
95
+ 'quads-js', // Handle.
96
+
97
+ plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ), // Block.build.js: We register the block here. Built with Webpack.
98
+
99
+ array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), // Dependencies, defined above.
100
+
101
+ null, // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' ), // Version: filemtime ? Gets file modification time.
102
+
103
+ true // Enqueue the script in the footer.
104
+
105
+ );
106
+
107
+
108
+
109
+ // Register block editor styles for backend.
110
+
111
+ wp_register_style(
112
+
113
+ 'quads-editor-css', // Handle.
114
+
115
+ plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
116
+
117
+ array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
118
+
119
+ null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
120
+
121
+ );
122
+
123
+
124
+
125
+ // WP Localized globals. Use dynamic PHP stuff in JavaScript via `quadsGlobal` object.
126
+
127
+ wp_localize_script(
128
+
129
+ 'quads-js',
130
+
131
+ 'quadsGlobal', // Array containing dynamic data for a JS Global.
132
+
133
+ array(
134
+
135
+ 'pluginDirPath' => plugin_dir_path( __DIR__ ),
136
+
137
+ 'pluginDirUrl' => plugin_dir_url( __DIR__ ),
138
+
139
+ 'quads_get_ads' => quads_get_ads(),
140
+
141
+ // Add more data here that you want to access from `quads_get_ads ` object.
142
+
143
+ )
144
+
145
+ );
146
+
147
+
148
+
149
+ register_block_type(
150
+
151
+ 'quads/adds', array(
152
+
153
+ // Enqueue blocks.style.build.css on both frontend & backend.
154
+
155
+ 'style' => 'quads-style-css',
156
+
157
+ // Enqueue blocks.build.js in the editor only.
158
+
159
+ 'editor_script' => 'quads-js',
160
+
161
+ // Enqueue blocks.editor.build.css in the editor only.
162
+
163
+ 'editor_style' => 'quads-editor-css',
164
+
165
+ )
166
+
167
+ );
168
+
169
+ }
170
+
171
+
172
+
173
+ // Hook: Block assets.
174
+
175
+ add_action( 'init', 'quads_block_assets' );
176
+
177
+
178
+
179
+
60
180
 
61
181
  ```
62
182
 
63
- <?php
64
-
65
- if ( ! defined( 'ABSPATH' ) ) {
66
-
67
- exit;
68
-
69
- }
70
-
71
-
72
-
73
- function quads_block_assets() { // phpcs:ignore
74
-
75
- // Register block styles for both frontend + backend.
76
-
77
- wp_register_style(
78
-
79
- 'quads-style-css', // Handle.
80
-
81
- plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ), // Block style CSS.
82
-
83
- is_admin() ? array( 'wp-editor' ) : null, // Dependency to include the CSS after it.
84
-
85
- null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.style.build.css' ) // Version: File modification time.
86
-
87
- );
88
-
89
-
90
-
91
- // Register block editor script for backend.
92
-
93
- wp_register_script(
94
-
95
- 'quads-js', // Handle.
96
-
97
- plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ), // Block.build.js: We register the block here. Built with Webpack.
98
-
99
- array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), // Dependencies, defined above.
100
-
101
- null, // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' ), // Version: filemtime ? Gets file modification time.
102
-
103
- true // Enqueue the script in the footer.
104
-
105
- );
106
-
107
-
108
-
109
- // Register block editor styles for backend.
110
-
111
- wp_register_style(
112
-
113
- 'quads-editor-css', // Handle.
114
-
115
- plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
116
-
117
- array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
118
-
119
- null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
120
-
121
- );
122
-
123
-
124
-
125
- // WP Localized globals. Use dynamic PHP stuff in JavaScript via `quadsGlobal` object.
126
-
127
- wp_localize_script(
128
-
129
- 'quads-js',
130
-
131
- 'quadsGlobal', // Array containing dynamic data for a JS Global.
132
-
133
- array(
134
-
135
- 'pluginDirPath' => plugin_dir_path( __DIR__ ),
136
-
137
- 'pluginDirUrl' => plugin_dir_url( __DIR__ ),
138
-
139
- 'quads_get_ads' => quads_get_ads(),
140
-
141
- // Add more data here that you want to access from `quads_get_ads ` object.
142
-
143
- )
144
-
145
- );
146
-
147
-
148
-
149
- register_block_type(
150
-
151
- 'quads/adds', array(
152
-
153
- // Enqueue blocks.style.build.css on both frontend & backend.
154
-
155
- 'style' => 'quads-style-css',
156
-
157
- // Enqueue blocks.build.js in the editor only.
158
-
159
- 'editor_script' => 'quads-js',
160
-
161
- // Enqueue blocks.editor.build.css in the editor only.
162
-
163
- 'editor_style' => 'quads-editor-css',
164
-
165
- )
166
-
167
- );
168
-
169
- }
170
-
171
-
172
-
173
- // Hook: Block assets.
174
-
175
- add_action( 'init', 'quads_block_assets' );
176
-
177
-
178
-
179
- ```
180
-
181
183
 
182
184
 
183
185
 
@@ -190,6 +192,12 @@
190
192
 
191
193
 
192
194
 
195
+ 追記
196
+
197
+ エックスサーバーよりソースコードを見つけましたので記載しております。
198
+
199
+
200
+
193
201
 
194
202
 
195
203
 

1

エックスサーバーよりソースコードを見つけましたので記載します。

2020/03/06 13:38

投稿

kansyashiori
kansyashiori

スコア5

test CHANGED
File without changes
test CHANGED
@@ -54,9 +54,131 @@
54
54
 
55
55
  ```ここに言語名を入力
56
56
 
57
- 「ソースコード」を入力とありますが、ソースコードはどこを見れば良いのか分からず困っております。
57
+ ```ここに言語を入力
58
+
58
-
59
+ コード
60
+
59
- ```
61
+ ```
62
+
63
+ <?php
64
+
65
+ if ( ! defined( 'ABSPATH' ) ) {
66
+
67
+ exit;
68
+
69
+ }
70
+
71
+
72
+
73
+ function quads_block_assets() { // phpcs:ignore
74
+
75
+ // Register block styles for both frontend + backend.
76
+
77
+ wp_register_style(
78
+
79
+ 'quads-style-css', // Handle.
80
+
81
+ plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ), // Block style CSS.
82
+
83
+ is_admin() ? array( 'wp-editor' ) : null, // Dependency to include the CSS after it.
84
+
85
+ null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.style.build.css' ) // Version: File modification time.
86
+
87
+ );
88
+
89
+
90
+
91
+ // Register block editor script for backend.
92
+
93
+ wp_register_script(
94
+
95
+ 'quads-js', // Handle.
96
+
97
+ plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ), // Block.build.js: We register the block here. Built with Webpack.
98
+
99
+ array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), // Dependencies, defined above.
100
+
101
+ null, // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' ), // Version: filemtime ? Gets file modification time.
102
+
103
+ true // Enqueue the script in the footer.
104
+
105
+ );
106
+
107
+
108
+
109
+ // Register block editor styles for backend.
110
+
111
+ wp_register_style(
112
+
113
+ 'quads-editor-css', // Handle.
114
+
115
+ plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
116
+
117
+ array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
118
+
119
+ null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
120
+
121
+ );
122
+
123
+
124
+
125
+ // WP Localized globals. Use dynamic PHP stuff in JavaScript via `quadsGlobal` object.
126
+
127
+ wp_localize_script(
128
+
129
+ 'quads-js',
130
+
131
+ 'quadsGlobal', // Array containing dynamic data for a JS Global.
132
+
133
+ array(
134
+
135
+ 'pluginDirPath' => plugin_dir_path( __DIR__ ),
136
+
137
+ 'pluginDirUrl' => plugin_dir_url( __DIR__ ),
138
+
139
+ 'quads_get_ads' => quads_get_ads(),
140
+
141
+ // Add more data here that you want to access from `quads_get_ads ` object.
142
+
143
+ )
144
+
145
+ );
146
+
147
+
148
+
149
+ register_block_type(
150
+
151
+ 'quads/adds', array(
152
+
153
+ // Enqueue blocks.style.build.css on both frontend & backend.
154
+
155
+ 'style' => 'quads-style-css',
156
+
157
+ // Enqueue blocks.build.js in the editor only.
158
+
159
+ 'editor_script' => 'quads-js',
160
+
161
+ // Enqueue blocks.editor.build.css in the editor only.
162
+
163
+ 'editor_style' => 'quads-editor-css',
164
+
165
+ )
166
+
167
+ );
168
+
169
+ }
170
+
171
+
172
+
173
+ // Hook: Block assets.
174
+
175
+ add_action( 'init', 'quads_block_assets' );
176
+
177
+
178
+
179
+ ```
180
+
181
+
60
182
 
61
183
 
62
184