Browse Source

fix: revert post content edition message

pull/351/head
Ricardo Aragon 2 years ago
parent
commit
3dcd7d8782
  1. 3
      inc/actions/namespace.php

3
inc/actions/namespace.php

@ -234,8 +234,7 @@ function hide_catalog_content_editor() {
if ( $template === 'page-catalog.php' ) {
add_action(
'edit_form_after_title', function() {
// printf( '<p>%s</p>', __( 'This page displays your network catalog, so there is no content to edit.', 'pressbooks-aldine' ) );
printf( '<p>%s</p>', __( 'Note for devs: We want to allow to edit it but with some restrictions', 'pressbooks-aldine' ) );
printf( '<p>%s</p>', __( 'This page displays your network catalog, so there is no content to edit.', 'pressbooks-aldine' ) );
}
);
remove_post_type_support( 'page', 'editor' );

Loading…
Cancel
Save