Jetpack: Gutenberg: Update copy for Publicize for pages

Created on 19 Nov 2018  路  2Comments  路  Source: Automattic/jetpack

I am coming from #28681 to report this.

Steps to reproduce

  • Start with a Jetpack site and have Publicize and Gutenberg enabled on it
  • Create a page and write content in it
  • Click on Publish to arrive at the pre-publish view
  • Look at the copy on the Publicize section

What is expected

It reads Share this page and to share this page

What happens instead

It reads Share this post and to share this post

screenshot 2018-11-19 at 20 18 29

Ideally Publicize support is not available for pages, but as and when we make it available, the copy should be updated. // cc @tyxla

Gutenberg Publicize [Pri] Low [Type] Enhancement

Most helpful comment

Ideally, we should be flexible and adapt copy when support is enabled not only on pages, but on any post types. For that purpose, we could consume the post type labels that are available for us already.

All 2 comments

Note: to enable Publicize support for a post type, one needs to define it specifically, like this:

add_action( 'init', '_test_jetpack_add_publicize_support_to_pages' );
function _test_jetpack_add_publicize_support_to_pages() {
    // Enable Publicize support for pages
    add_post_type_support( 'page', 'publicize' );
}

Ideally, we should be flexible and adapt copy when support is enabled not only on pages, but on any post types. For that purpose, we could consume the post type labels that are available for us already.

Was this page helpful?
0 / 5 - 0 ratings