| @@ 411-415 (lines=5) @@ | ||
| 408 | function likes_edit_column( $column_name, $post_id ) { |
|
| 409 | if ( 'likes' == $column_name ) { |
|
| 410 | ||
| 411 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
| 412 | $blog_id = get_current_blog_id(); |
|
| 413 | } else { |
|
| 414 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
| 415 | } |
|
| 416 | ||
| 417 | $permalink = get_permalink( get_the_ID() ); ?> |
|
| 418 | <a title="" data-post-id="<?php echo (int) $post_id; ?>" class="post-com-count post-like-count" id="post-like-count-<?php echo (int) $post_id; ?>" data-blog-id="<?php echo (int) $blog_id; ?>" href="<?php echo esc_url( $permalink ); ?>#like-<?php echo (int) $post_id; ?>"> |
|
| @@ 66-70 (lines=5) @@ | ||
| 63 | * @return string |
|
| 64 | */ |
|
| 65 | public function get( $attachment, $request ) { |
|
| 66 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
| 67 | $blog_id = get_current_blog_id(); |
|
| 68 | } else { |
|
| 69 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
| 70 | } |
|
| 71 | ||
| 72 | $post_id = absint( $attachment['id'] ); |
|
| 73 | ||