Add missing access modifiers to `WP_Press_This`.

See #31456.


git-svn-id: https://develop.svn.wordpress.org/trunk@31552 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-02-26 05:17:42 +00:00
parent a136a78c1e
commit 9145a72789
1 changed files with 8 additions and 8 deletions

View File

@ -519,7 +519,7 @@ class WP_Press_This {
*
* @param WP_Post $post Post object.
*/
function post_formats_html( $post ) {
public function post_formats_html( $post ) {
if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) ) {
$post_formats = get_theme_support( 'post-formats' );
@ -564,7 +564,7 @@ class WP_Press_This {
*
* @param WP_Post $post Post object.
*/
function categories_html( $post ) {
public function categories_html( $post ) {
$taxonomy = get_taxonomy( 'category' );
if ( current_user_can( $taxonomy->cap->edit_terms ) ) {
@ -611,7 +611,7 @@ class WP_Press_This {
*
* @param WP_Post $post Post object.
*/
function tags_html( $post ) {
public function tags_html( $post ) {
$taxonomy = get_taxonomy( 'post_tag' );
$user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms );
$esc_tags = get_terms_to_edit( $post->ID, 'post_tag' );