Skip to content

Commit 35975f3

Browse files
committed
Fix admin styles
1 parent 7acf427 commit 35975f3

File tree

9 files changed

+7
-6
lines changed

9 files changed

+7
-6
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build
2+
coverage
23
node_modules
34
tests
45
vendor

build/blocks/reply/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'b57d831de7ed0c6c9630');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '4b89612674860b9394e5');

build/blocks/reply/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

includes/wp-admin/class-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public static function enqueue_scripts( $hook_suffix ) {
226226
if ( false !== strpos( $hook_suffix, 'activitypub' ) ) {
227227
wp_enqueue_style(
228228
'activitypub-admin-styles',
229-
plugins_url( 'build/wp-admin/style.scss', ACTIVITYPUB_PLUGIN_FILE ),
229+
plugins_url( 'build/wp-admin/admin.css', ACTIVITYPUB_PLUGIN_FILE ),
230230
array(),
231231
ACTIVITYPUB_PLUGIN_VERSION
232232
);
@@ -250,7 +250,7 @@ public static function enqueue_scripts( $hook_suffix ) {
250250
if ( 'index.php' === $hook_suffix ) {
251251
wp_enqueue_style(
252252
'activitypub-admin-styles',
253-
plugins_url( 'build/wp-admin/style.scss', ACTIVITYPUB_PLUGIN_FILE ),
253+
plugins_url( 'build/wp-admin/admin.css', ACTIVITYPUB_PLUGIN_FILE ),
254254
array(),
255255
ACTIVITYPUB_PLUGIN_VERSION
256256
);

includes/wp-admin/class-welcome-fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function init() {
3737
*/
3838
public static function enqueue_styles() {
3939
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
40-
if ( 'welcome' === ( isset( $_GET['tab'] ) ? \sanitize_key( $_GET['tab'] ) : 'welcome' ) ) {
40+
if ( 'welcome' === \sanitize_key( $_GET['tab'] ?? 'welcome' ) ) {
4141
\wp_enqueue_style(
4242
'activitypub-welcome',
4343
\plugins_url( 'build/wp-admin/welcome.css', ACTIVITYPUB_PLUGIN_FILE ),

src/blocks/reply/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ const HELP_TEXT = {
336336
</>
337337
),
338338
valid: __( 'The author will be notified of your response.', 'activitypub' ),
339-
error: __( "This URL probably won't receive your reply. We'll still try.", 'activitypub' ),
339+
error: __( 'This URL probably wont receive your reply. Well still try.', 'activitypub' ),
340340
};
341341

342342
/**
File renamed without changes.

0 commit comments

Comments
 (0)