Skip to content

Commit

Permalink
deploy: 453dace
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 17, 2025
1 parent 2ef8b78 commit dd29c38
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 13 deletions.
2 changes: 1 addition & 1 deletion includes_metabox.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
<code>
<?php
// Translators: HTTP error code.
printf( esc_html__( 'Error: %s', 'wp-to-twitter' ), $reason );
printf( esc_html__( 'Error: %s', 'wp-to-twitter' ), esc_html( $reason ) );
?>
</code>
<div class="wpt-status-updated">
Expand Down
30 changes: 30 additions & 0 deletions wp-to-twitter.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,36 @@
wp_clear_scheduled_hook( 'wptratelimits' );
}

/**
* Pro version check.
*/
function xposter_pro_check() {
global $wptp_version;
if ( $wptp_version && version_compare( $wptp_version, '3.4.0', '<=' ) ) {
$plugin_data = get_plugin_data( __FILE__, false );
$upgrade_now = ' <a href="https://xposterpro.com/awesome/xposter-pro/">' . esc_html__( 'Upgrade Now', 'wp-to-twitter' ) . '</a>';
// Translators: Plugin name, plugin version required, your plugin version.
$message = sprintf(
__( '%1$s is only compatible with XPoster Pro %2$s or higher; XPoster Pro has been deactivated. Your current version is %3$s.', 'wp-to-twitter' ) . $upgrade_now,
'<strong>' . $plugin_data['Name'] . '</strong>',
'<strong>3.4.0</strong>',
$wptp_version
);
wp_admin_notice(
$message,
array(
'type' => 'error',
)
);
if ( '3.0.0' === $wptp_version ) {
deactivate_plugins( 'wp-tweets-pro/wpt-pro-functions.php' );
} else {
deactivate_plugins( 'xposter-pro/wpt-pro-functions.php' );
}
}
}
add_action( 'admin_notices', 'xposter_pro_check' );

/**
* Activate XPoster.
*/
Expand Down
2 changes: 1 addition & 1 deletion wpt_allowed_post_types.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line1209">line 1209</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line1239">line 1239</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_auto_tweet_allowed.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line1247">line 1247</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line1277">line 1277</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_filter_post_data.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line760">line 760</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line790">line 790</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_insert_post.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line1046">line 1046</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line1076">line 1076</a>
</li></ul></dd>


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

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line848">line 848</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line878">line 878</a>
</li></ul></dd>


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

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line253">line 253</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line283">line 283</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_service_enabled.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line295">line 295</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line325">line 325</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_should_block_status.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line744">line 744</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line774">line 774</a>
</li></ul></dd>


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

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line513">line 513</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line543">line 543</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_tweet_posted.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line527">line 527</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line557">line 557</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion wpt_tweet_this_edit.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="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line808">line 808</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line838">line 838</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 @@ -203,7 +203,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line885">line 885</a>
<a href="wp-to-twitter.php.html">wp-to-twitter.php</a>, <a href="wp-to-twitter.php.html#line915">line 915</a>
</li></ul></dd>


Expand Down

0 comments on commit dd29c38

Please sign in to comment.