File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ const MainTabs = () => {
66
66
< Tooltip text = { __ ( 'Back to all taxonomies' , 'mb-custom-post-type' ) } position = { 'bottom right' } >
67
67
< a className = "logo" href = { MBCPT . url } > < Logo /> </ a >
68
68
</ Tooltip >
69
- < h1 > { ( MBCPT . action == 'add' ) ? __ ( 'Add Taxonomies' , 'mb-custom-post-type' ) : __ ( 'Edit Taxonomies' , 'mb-custom-post-type' ) } </ h1 >
70
- { ! ( MBCPT . action == 'add' ) && < a className = "page-title-action" href = { MBCPT . add } > { __ ( 'Add New' , 'mb-custom-post-type' ) } </ a > }
69
+ < h1 > { MBCPT . action === 'add' ? __ ( 'Add Taxonomies' , 'mb-custom-post-type' ) : __ ( 'Edit Taxonomies' , 'mb-custom-post-type' ) } </ h1 >
70
+ { MBCPT . action ! == 'add' && < a className = "page-title-action" href = { MBCPT . add } > { __ ( 'Add New' , 'mb-custom-post-type' ) } </ a > }
71
71
</ Flex >
72
72
< Flex gap = { 3 } expanded = { false } className = "mb-cpt-action" >
73
73
< input
@@ -117,8 +117,8 @@ const MainTabs = () => {
117
117
</ Flex >
118
118
< input type = "hidden" name = "post_title" value = { settings . labels . singular_name } />
119
119
< input type = "hidden" name = "content" value = { JSON . stringify ( settings ) } />
120
- < input type = "hidden" className = "post_status" name = "post_status" value = { MBCPT . status || 'draft' } />
121
- < input type = "hidden" name = "messages" className = "mb-cpt-messages" value = "" />
120
+ < input type = "hidden" name = "post_status" value = { MBCPT . status || 'draft' } />
121
+ < input type = "hidden" name = "messages" value = "" />
122
122
</ > ;
123
123
} ;
124
124
You can’t perform that action at this time.
0 commit comments