_inc/lib/core-api/wpcom-fields/attachment-fields-videopress.php 1 location
|
@@ 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 |
|
|
packages/module-likes/legacy/likes.php 1 location
|
@@ 405-409 (lines=5) @@
|
| 402 |
|
function likes_edit_column( $column_name, $post_id ) { |
| 403 |
|
if ( 'likes' == $column_name ) { |
| 404 |
|
|
| 405 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 406 |
|
$blog_id = get_current_blog_id(); |
| 407 |
|
} else { |
| 408 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
$permalink = get_permalink( get_the_ID() ); ?> |
| 412 |
|
<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; ?>"> |