Make WordPress Core


Ignore:
Timestamp:
11/18/2015 08:50:53 PM (9 years ago)
Author:
DrewAPicture
Message:

Embeds: Introduce print_embed_comments_button(), print_embed_sharing_button(), and print_embed_sharing_dialog(), which respectively output the comments button, sharing buttons, and sharing dialog elements in the embed template.

This change hooks these new output functions to existing hooks in the embed template, allowing for more straightforward display control of these elements.

Leaves the embed header and footer intact pending further modularization in a future release.

Props juliobox, swissspidy, DrewAPicture.
See #34561.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r35517 r35689  
    459459add_action( 'embed_head',             'locale_stylesheet'                     );
    460460
     461add_action( 'embed_content_meta',     'print_embed_comments_button'           );
     462add_action( 'embed_content_meta',     'print_embed_sharing_button'            );
     463
     464add_action( 'embed_footer',           'print_embed_sharing_dialog'            );
    461465add_action( 'embed_footer',           'print_embed_scripts'                   );
    462466add_action( 'embed_footer',           'wp_print_footer_scripts',        20    );
Note: See TracChangeset for help on using the changeset viewer.