Remove highlight class from shortcode text

This commit is contained in:
Brian Miyaji
2014-08-18 02:21:23 +10:00
parent ab7b20a7ba
commit 0d34fad62b
7 changed files with 10 additions and 10 deletions

View File

@@ -237,7 +237,7 @@ class SP_Admin_Meta_Boxes {
if ( is_int( wp_is_post_revision( $post ) ) ) return;
if ( is_int( wp_is_post_autosave( $post ) ) ) return;
if ( empty( $_POST['sportspress_meta_nonce'] ) || ! wp_verify_nonce( $_POST['sportspress_meta_nonce'], 'sportspress_save_data' ) ) return;
if ( ! current_user_can( 'edit_post', $post_id )) return;
if ( ! current_user_can( 'edit_post', $post_id ) ) return;
if ( ! is_sp_post_type( $post->post_type ) && ! is_sp_config_type( $post->post_type ) ) return;
do_action( 'sportspress_process_' . $post->post_type . '_meta', $post_id, $post );

View File

@@ -25,7 +25,7 @@ class SP_Meta_Box_Calendar_Shortcode {
<p class="howto">
<?php _e( 'Copy this code and paste it into your post, page or text widget content.', 'sportspress' ); ?>
</p>
<p><input type="text" value="[event_<?php echo $the_format; ?> <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[event_<?php echo $the_format; ?> <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<?php
}
}

View File

@@ -26,15 +26,15 @@ class SP_Meta_Box_Event_Shortcode {
<p>
<strong><?php _e( 'Team Results', 'sportspress' ); ?></strong>
</p>
<p><input type="text" value="[event_results <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[event_results <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<p>
<strong><?php _e( 'Details', 'sportspress' ); ?></strong>
</p>
<p><input type="text" value="[event_details <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[event_details <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<p>
<strong><?php _e( 'Player Performance', 'sportspress' ); ?></strong>
</p>
<p><input type="text" value="[event_performance <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[event_performance <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<?php
}
}

View File

@@ -25,7 +25,7 @@ class SP_Meta_Box_List_Shortcode {
<p class="howto">
<?php _e( 'Copy this code and paste it into your post, page or text widget content.', 'sportspress' ); ?>
</p>
<p><input type="text" value="[player_<?php echo $the_format; ?> <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[player_<?php echo $the_format; ?> <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<?php
}
}

View File

@@ -26,11 +26,11 @@ class SP_Meta_Box_Player_Shortcode {
<p>
<strong><?php _e( 'Details', 'sportspress' ); ?></strong>
</p>
<p><input type="text" value="[player_details <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[player_details <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<p>
<strong><?php _e( 'Statistics', 'sportspress' ); ?></strong>
</p>
<p><input type="text" value="[player_statistics <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[player_statistics <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<?php
}
}

View File

@@ -23,7 +23,7 @@ class SP_Meta_Box_Table_Shortcode {
<p class="howto">
<?php _e( 'Copy this code and paste it into your post, page or text widget content.', 'sportspress' ); ?>
</p>
<p><input type="text" value="[league_table <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[league_table <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<?php
}
}

View File

@@ -26,7 +26,7 @@ class SP_Meta_Box_Team_Shortcode {
<p>
<strong><?php _e( 'Table Columns', 'sportspress' ); ?></strong>
</p>
<p><input type="text" value="[team_columns <?php echo $post->ID; ?>]" readonly="readonly" class="wp-ui-text-highlight code"></p>
<p><input type="text" value="[team_columns <?php echo $post->ID; ?>]" readonly="readonly" class="code"></p>
<?php
}
}