Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove template-only mode from editor and edit-post packages #57700

Merged
merged 31 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f3bfce7
Resolve style conflict
glendaviesnz Jan 22, 2024
f35bc22
Remove use of `template-only` from post editor
glendaviesnz Jan 22, 2024
894ad66
Remove some of the editor package template-only references
glendaviesnz Jan 9, 2024
4fd7939
Remove remaining instances of template-only in editor package
glendaviesnz Jan 9, 2024
140f10a
Put back some template checks as probably not relevant to pattern edi…
glendaviesnz Jan 22, 2024
e6fb7a2
remove test code
glendaviesnz Jan 9, 2024
27caa0b
Remove template-only from site editor
glendaviesnz Jan 10, 2024
6294d72
Get the new template id when creating a template in site editor
glendaviesnz Jan 10, 2024
3dc8b2a
Fix broken string
glendaviesnz Jan 10, 2024
dcd6f0b
Fix breadcrumb label
glendaviesnz Jan 10, 2024
cce8dec
Remove unused class
glendaviesnz Jan 10, 2024
6f381ae
remove hasHistory checks from header bar
glendaviesnz Jan 22, 2024
d2a572b
Use the router in the site editor instead of getPostLinkProps
glendaviesnz Jan 10, 2024
36a6100
Set the default rendering mode in the post editor
glendaviesnz Jan 22, 2024
db8b1dc
Enable the code editor mode option for template mode in the post editor
talldan Jan 16, 2024
116c392
Remove randomly added dependency
talldan Jan 16, 2024
eca8305
Use post type label for document tab title
talldan Jan 16, 2024
0819e6b
Show the editor padding whenever a goBack is set
talldan Jan 16, 2024
ef5539a
Add the goBack link back into the edit template modal
glendaviesnz Jan 22, 2024
cd0d7b9
Return getEditorSettings from useSelect instead of goBack as goBack n…
glendaviesnz Jan 22, 2024
73ede7f
Add goBack link back for classic themes
glendaviesnz Jan 22, 2024
78b9d2d
Fix editor padding
glendaviesnz Jan 22, 2024
dbf7abc
Remove uncalled branch
glendaviesnz Jan 22, 2024
a749611
Fix issue with page content not showing in site editor page editor
glendaviesnz Jan 23, 2024
d6bebab
Get the back options working in the site editor
glendaviesnz Jan 23, 2024
79bb9ea
Remove `wp_template` check that isn't needed now.
glendaviesnz Jan 23, 2024
02201cb
Fix e2e tests
glendaviesnz Jan 23, 2024
016058f
Disable autosaving of templates in post editor
glendaviesnz Jan 23, 2024
a613541
Code tidy ups
glendaviesnz Jan 24, 2024
a04ff70
Pull the setting of the canvas mode back into the site editor
glendaviesnz Jan 24, 2024
c1a902f
Remove another reference to canvas: edit
glendaviesnz Jan 24, 2024
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Code tidy ups
  • Loading branch information
glendaviesnz committed Jan 24, 2024
commit a613541b544ea46c9e063db05339c0479d78e195
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import { store as editorStore } from '@wordpress/editor';
*/
import { STORE_NAME } from '../../../store/constants';
import { SIDEBAR_BLOCK, SIDEBAR_TEMPLATE } from '../constants';
// import { store as editSiteStore } from '../../../store';
// import { POST_TYPE_LABELS, TEMPLATE_POST_TYPE } from '../../../utils/constants';

const SettingsHeader = ( { sidebarName } ) => {
const postTypeLabel = useSelect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function PostTemplateDropdownContent( { onClose } ) {
);
} }
>
{ __( 'Edit templates' ) }
{ __( 'Edit template' ) }
</Button>
</p>
) }
Expand Down
2 changes: 0 additions & 2 deletions packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ export const ExperimentalEditorProvider = withRegistryProvider(
}
);
}
// Not sure if the missing no dependencies here is deliberate or not so ignoring lint warning for now.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [] );

// Synchronizes the active post with the state
Expand Down
Loading