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' ) { if ( $template === 'page-catalog.php' ) {
add_action( add_action(
'edit_form_after_title', function() { '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>', __( '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' ) );
} }
); );
remove_post_type_support( 'page', 'editor' ); remove_post_type_support( 'page', 'editor' );

Loading…
Cancel
Save