@@ 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; ?>"> |
@@ 41-45 (lines=5) @@ | ||
38 | return $content; |
|
39 | } |
|
40 | ||
41 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
42 | $blog_id = get_current_blog_id(); |
|
43 | } else { |
|
44 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
45 | } |
|
46 | ||
47 | $post_id = absint( $attributes['id'] ); |
|
48 | $videopress_id = video_get_info_by_blogpostid( $blog_id, $post_id )->guid; |