[wp-trac] [WordPress Trac] #62420: After upgrade to wordpress 6.7 theme CSS is not loading in wordpress admin panel
WordPress Trac
noreply at wordpress.org
Wed Nov 20 10:43:35 UTC 2024
#62420: After upgrade to wordpress 6.7 theme CSS is not loading in wordpress admin
panel
----------------------------+------------------------------
Reporter: tusharaddweb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 6.7
Severity: major | Resolution:
Keywords: needs-patch | Focuses: ui
----------------------------+------------------------------
Changes (by tusharaddweb):
* keywords: reporter-feedback close => needs-patch
Comment:
yes I am still facing this issue with custom block I have built. It works
fine in previoius versions.
Attaching code below:
{{{
const { registerBlockType } = wp.blocks;
const { TextControl, CheckboxControl } = wp.components;
registerBlockType('custom-field/block', {
title: 'Custom Field Block',
description: 'A block to display a custom field value dynamically.',
category: 'common',
icon: 'admin-post',
attributes: {
fieldName: {
type: 'string',
default: 'my_custom_field',
},
displayAsImage: {
type: 'boolean',
default: false,
},
},
edit: ({ attributes: { fieldName = 'my_custom_field', displayAsImage =
false }, setAttributes }) => {
return (
<div>
<TextControl
label="Custom Field Name"
value={fieldName}
onChange={(newFieldName) => setAttributes({ fieldName:
newFieldName })}
help="Enter the custom field name (meta key) you want
to display."
/>
<CheckboxControl
label="Display as Image"
checked={displayAsImage}
onChange={(newDisplayAsImage) => setAttributes({
displayAsImage: newDisplayAsImage })}
help="Check to display the custom field value as an
image."
/>
</div>
);
},
save: () => {
return null; // Server-rendered block
},
});
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62420#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list