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:
parent
a136a78c1e
commit
9145a72789
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue