| @@ 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; ?>"> |
|
| @@ 65-69 (lines=5) @@ | ||
| 62 | return $content; |
|
| 63 | } |
|
| 64 | ||
| 65 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
| 66 | $blog_id = get_current_blog_id(); |
|
| 67 | } else { |
|
| 68 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
| 69 | } |
|
| 70 | ||
| 71 | $post_id = absint( $attributes['id'] ); |
|
| 72 | $videopress_id = video_get_info_by_blogpostid( $blog_id, $post_id )->guid; |
|