Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:10up/autoshare-for-twitter into …
Browse files Browse the repository at this point in the history
…release/2.2.0
  • Loading branch information
iamdharmesh committed Jan 3, 2024
2 parents 89ee7ed + 2c8b9e4 commit e4a963b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-ast-staging.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function get_autoshare_live_url_lock_key() {
$scheme = wp_parse_url( $url, PHP_URL_SCHEME ) . '://';
$url = str_replace( $scheme, '', $url );

return $scheme . substr_replace( $url, '_[autoshare_liveurl]_', strlen( $url ) / 2, 0 );
return $scheme . substr_replace( $url, '_[autoshare_liveurl]_', intval( strlen( $url ) / 2 ), 0 );
}

/**
Expand Down

0 comments on commit e4a963b

Please sign in to comment.