Skip to content

Commit

Permalink
Only show media settings heading if at least one media setting enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Dec 30, 2023
1 parent d4c9387 commit 71b3ced
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/wp-to-twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1659,11 +1659,6 @@ function wpt_admin_scripts() {
wp_enqueue_script( 'wpt.charcount', plugins_url( 'js/jquery.charcount.js', __FILE__ ), array( 'jquery' ), $wpt_version );
wp_register_style( 'wpt-post-styles', plugins_url( 'css/post-styles.css', __FILE__ ), array(), $wpt_version );
wp_enqueue_style( 'wpt-post-styles' );
$css = '#wp2t h2 {
background: url("' . plugins_url( 'images/logo-black.png', __FILE__ ) . '") 12px 50% no-repeat;
padding-left: 32px !important;
}';
wp_add_inline_style( 'wpt-post-styles', $css );
$config = wpt_max_length();
// add one; character count starts from 1.
if ( 'post' === $current_screen->base ) {
Expand Down

0 comments on commit 71b3ced

Please sign in to comment.