Skip to content

Commit

Permalink
deploy: d928d68
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 30, 2025
1 parent d49deb6 commit 30632e4
Show file tree
Hide file tree
Showing 12 changed files with 205 additions and 200 deletions.
2 changes: 1 addition & 1 deletion includes_media.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
*/
function wpt_post_with_media( $post_ID ) {
$return = false;
if ( ! function_exists( 'wpt_pro_exists' ) ) {
if ( ! function_exists( 'wpt_pro_exists' ) || ! $post_ID ) {
return $return;
}
$post_info = wpt_post_info( $post_ID );
Expand Down
2 changes: 1 addition & 1 deletion wp-to-twitter.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
*
* @return bool
*/
function wpt_service_enabled( $post_ID = false, $service ) {
function wpt_service_enabled( $post_ID = false, $service = 'bluesky' ) {
$omit = ( $post_ID ) ? get_post_meta( $post_ID, '_wpt_omit_services', true ) : array();
$omit = ( $omit && is_array( $omit ) ) ? $omit : array();
$disabled = get_option( 'wpt_disabled_services', array() );
Expand Down
12 changes: 6 additions & 6 deletions wpt-functions.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,28 +172,28 @@
if ( $testpost && ! empty( $testpost ) ) {
foreach ( $testpost as $key => $test ) {
if ( 'xcom' === $key ) {
$message .= '<li><strong>' . __( 'XPoster successfully submitted a status update to X.com.', 'wp-to-twitter' ) . '</strong></li>';
$message .= '<li>' . __( 'XPoster successfully submitted a status update to X.com.', 'wp-to-twitter' ) . '</li>';
}
if ( 'mastodon' === $key ) {
$message .= '<li><strong>' . __( 'XPoster successfully submitted a status update to your Mastodon instance.', 'wp-to-twitter' ) . '</strong></li>';
$message .= '<li>' . __( 'XPoster successfully submitted a status update to your Mastodon instance.', 'wp-to-twitter' ) . '</li>';
}
if ( 'bluesky' === $key ) {
$message .= '<li><strong>' . __( 'XPoster successfully submitted a status update to your Bluesky account.', 'wp-to-twitter' ) . '</strong></li>';
$message .= '<li>' . __( 'XPoster successfully submitted a status update to your Bluesky account.', 'wp-to-twitter' ) . '</li>';
}
}
} else {
$error = wpt_get_log( 'wpt_status_message', 'test' );
$message .= '<li class="error"><strong>' . __( 'XPoster failed to submit status updates.', 'wp-to-twitter' ) . '</strong></li>';
$message .= '<li class="error">' . __( 'XPoster failed to submit status updates.', 'wp-to-twitter' ) . '</li>';
$message .= "<li class='error'>$error</li>";
}
} else {
$message .= '<strong>' . __( 'You have not connected WordPress to a supported service.', 'wp-to-twitter' ) . '</strong> ';
$message .= __( 'You have not connected WordPress to a supported service.', 'wp-to-twitter' ) . ' ';
}
if ( false === $testpost && false === $shrink ) {
$message .= '<li class="error">' . __( "<strong>Your server does not appear to support the required methods for XPoster to function.</strong> You can try it anyway - these tests aren't perfect.", 'wp-to-twitter' ) . '</li>';
}
if ( $testpost && $shrink ) {
$message .= '<li><strong>' . __( 'Your server should run XPoster successfully.', 'wp-to-twitter' ) . '</strong></li>';
$message .= '<li>' . __( 'Your server should run XPoster successfully.', 'wp-to-twitter' ) . '</li>';
}
$message .= '</ul>
</div>';
Expand Down
369 changes: 187 additions & 182 deletions wpt-truncate.php.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wpt_custom_shortcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line566">line 566</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line571">line 571</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_custom_tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line511">line 511</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line516">line 516</a>
</li></ul></dd>


Expand Down
6 changes: 3 additions & 3 deletions wpt_custom_truncate.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line134">line 134</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line138">line 138</a>
</li></ul></dd>


Expand Down Expand Up @@ -488,7 +488,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line160">line 160</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line164">line 164</a>
</li></ul></dd>


Expand Down Expand Up @@ -750,7 +750,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line300">line 300</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line305">line 305</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_filter_truncated_value.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line246">line 246</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line250">line 250</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line381">line 381</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line386">line 386</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_tweet_sentence.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line106">line 106</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line110">line 110</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_user_meta_shortcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line604">line 604</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line609">line 609</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wptt_shorten_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line417">line 417</a>
<a href="wpt-truncate.php.html">wpt-truncate.php</a>, <a href="wpt-truncate.php.html#line422">line 422</a>
</li></ul></dd>


Expand Down

0 comments on commit 30632e4

Please sign in to comment.