Remove closing PHP tags

This commit is contained in:
Brian Miyaji
2014-01-07 11:20:43 +11:00
parent 79b6ae5806
commit 98dcd69b33
45 changed files with 13 additions and 49 deletions

View File

@@ -29,4 +29,3 @@ function sp_admin_menu( $position ) {
unset( $submenu['edit.php?post_type=sp_staff'][15] );
}
add_action( 'admin_menu', 'sp_admin_menu' );
?>

View File

@@ -3,4 +3,3 @@ function sp_after_theme_setup() {
add_theme_support( 'post-thumbnails' );
}
add_action( 'after_theme_setup', 'sp_after_theme_setup' );
?>

View File

@@ -3,4 +3,3 @@ function sp_manage_posts_columns() {
sp_highlight_admin_menu();
}
add_action( 'manage_posts_columns', 'sp_manage_posts_columns' );
?>

View File

@@ -83,4 +83,3 @@ function sp_manage_posts_custom_column( $column, $post_id ) {
}
add_action( 'manage_posts_custom_column', 'sp_manage_posts_custom_column', 10, 2 );
add_action( 'manage_pages_custom_column', 'sp_manage_posts_custom_column', 10, 2 );
?>

View File

@@ -4,4 +4,3 @@ function sp_plugins_loaded() {
add_image_size( 'sp_icon', 32, 32, false );
}
add_action( 'plugins_loaded', 'sp_plugins_loaded' );
?>

View File

@@ -12,4 +12,3 @@ function sp_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $at
return $html;
}
add_filter( 'post_thumbnail_html', 'sp_post_thumbnail_html', 10, 5 );
?>

View File

@@ -34,4 +34,3 @@ function sp_restrict_manage_posts() {
endif;
}
add_action( 'restrict_manage_posts', 'sp_restrict_manage_posts' );
?>

View File

@@ -134,4 +134,3 @@ function sp_save_post( $post_id ) {
endswitch;
}
add_action( 'save_post', 'sp_save_post' );
?>

View File

@@ -24,4 +24,3 @@ function sp_admin_post_thumbnail_html( $translated_text, $post_id ) {
return $translated_text;
}
add_filter( 'admin_post_thumbnail_html', 'sp_admin_post_thumbnail_html', 10, 2 );
?>

View File

@@ -41,4 +41,3 @@ function sp_gettext( $translated_text, $untranslated_text, $domain ) {
return $translated_text;
}
add_filter( 'gettext', 'sp_gettext', 20, 3 );
?>

View File

@@ -13,4 +13,3 @@ function sp_pre_get_posts( $wp_query ) {
endif;
}
add_filter('pre_get_posts', 'sp_pre_get_posts');
?>

View File

@@ -23,4 +23,3 @@ function sp_sanitize_title( $title ) {
return $title;
}
add_filter( 'sanitize_title', 'sp_sanitize_title' );
?>

View File

@@ -21,4 +21,3 @@ function sportspress_the_content( $content ) {
return $content;
}
add_filter('the_content', 'sportspress_the_content');
?>

View File

@@ -17,4 +17,3 @@ function sp_insert_post_data( $data, $postarr ) {
return $data;
}
add_filter( 'wp_insert_post_data' , 'sp_insert_post_data' , '99', 2 );
?>

View File

@@ -95,4 +95,3 @@ function sp_column_details_meta( $post ) {
<?php
sp_nonce();
}
?>

View File

@@ -153,4 +153,3 @@ function sp_event_edit_sortable_columns( $columns ) {
return $columns;
}
add_filter( 'manage_edit-sp_event_sortable_columns', 'sp_event_edit_sortable_columns' );
?>

View File

@@ -83,4 +83,3 @@ function sp_list_stats_meta( $post ) {
sp_player_table( $columns, $data, $placeholders );
sp_nonce();
}
?>

View File

@@ -42,4 +42,3 @@ function sp_outcome_details_meta( $post ) {
<?php
sp_nonce();
}
?>

View File

@@ -228,4 +228,3 @@ function sp_player_details_meta( $post ) {
endforeach;
sp_nonce();
}
?>

View File

@@ -54,4 +54,3 @@ function sp_result_details_meta( $post ) {
<?php
sp_nonce();
}
?>

View File

@@ -8,4 +8,3 @@ function sp_separator_cpt_init() {
register_post_type( 'sp_separator', $args );
}
add_action( 'init', 'sp_separator_cpt_init' );
?>

View File

@@ -48,4 +48,3 @@ function sp_staff_edit_columns() {
return $columns;
}
add_filter( 'manage_edit-sp_staff_columns', 'sp_staff_edit_columns' );
?>

View File

@@ -95,4 +95,3 @@ function sp_statistic_equation_meta( $post ) {
<?php
sp_nonce();
}
?>

View File

@@ -72,4 +72,3 @@ function sp_table_columns_meta( $post ) {
sp_nonce();
}
?>

View File

@@ -175,4 +175,3 @@ function sp_team_columns_meta( $post ) {
sp_team_columns_table( $columns, $data, $placeholders );
sp_nonce();
}
?>

View File

@@ -176,4 +176,4 @@ $sportspress_sports['baseball'] = array(
),
),
),
);
);

View File

@@ -84,4 +84,4 @@ $sportspress_sports['basketball'] = array(
),
),
),
);
);

View File

@@ -68,4 +68,4 @@ $sportspress_sports['cricket'] = array(
'sp_outcome' => array(
),
),
);
);

View File

@@ -59,4 +59,4 @@ $sportspress_sports['football'] = array(
'sp_outcome' => array(
),
),
);
);

View File

@@ -73,4 +73,4 @@ $sportspress_sports['footy'] = array(
'sp_outcome' => array(
),
),
);
);

View File

@@ -66,4 +66,4 @@ $sportspress_sports['gaming'] = array(
'sp_outcome' => array(
),
),
);
);

View File

@@ -52,4 +52,4 @@ $sportspress_sports['golf'] = array(
'sp_outcome' => array(
),
),
);
);

View File

@@ -85,4 +85,4 @@ $sportspress_sports['hockey'] = array(
),
),
),
);
);

View File

@@ -54,4 +54,4 @@ $sportspress_sports['racing'] = array(
'sp_outcome' => array(
),
),
);
);

View File

@@ -82,4 +82,4 @@ $sportspress_sports['rugby'] = array(
'sp_outcome' => array(
),
),
);
);

View File

@@ -179,4 +179,4 @@ $sportspress_sports['soccer'] = array(
),
),
),
);
);

View File

@@ -1,8 +1,5 @@
<h3 class="title"><?php _e( 'General Settings', 'sportspress' ); ?></h3>
<?php
settings_fields( 'sportspress_general' );
do_settings_sections( 'sportspress_general' );
submit_button();
?>

View File

@@ -166,5 +166,3 @@ function sportspress_event_stats_callback() {
function sportspress_player_stats_callback() {
sportspress_render_option_field( 'sportspress_stats', 'player', 'textarea' );
}
?>

View File

@@ -16,4 +16,3 @@ function sp_position_term_init() {
register_taxonomy_for_object_type( 'sp_position', 'sp_player' );
}
add_action( 'init', 'sp_position_term_init' );
?>

View File

@@ -19,4 +19,3 @@ function sp_season_term_init() {
register_taxonomy_for_object_type( 'sp_season', 'sp_staff' );
}
add_action( 'init', 'sp_season_term_init' );
?>

View File

@@ -1526,4 +1526,3 @@ if ( !function_exists( 'sp_highlight_admin_menu' ) ) {
$submenu_file = 'sportspress';
}
}
?>

View File

@@ -38,4 +38,3 @@ __( 'Integer', 'sportspress' );
__( 'Decimal', 'sportspress' );
__( 'Time', 'sportspress' );
__( 'Custom Field', 'sportspress' );
?>

View File

@@ -1,2 +1,2 @@
<?php
// Silence is golden.
# Silence is golden.

View File

@@ -158,4 +158,3 @@ function sp_admin_head_edit() {
}
add_action( 'admin_head-edit.php', 'sp_admin_head_edit', 10, 2 );
add_action( 'admin_head-post.php', 'sp_admin_head_edit', 10, 2 );
?>

View File

@@ -8,7 +8,7 @@ Plugin URI: http://themeboy.com/sportspress
Description: Manage your club and its players, staff, events, league tables, and player lists.
Version: 0.1.3
Author: ThemeBoy
Author URI: http://themeboy.com
Author URI: http://themeboy.com/
License: GPLv3
*/
@@ -102,4 +102,3 @@ function sp_admin_enqueue_scripts() {
wp_enqueue_script( 'sportspress-admin', SPORTSPRESS_PLUGIN_URL .'/assets/js/admin.js', array( 'jquery' ), time(), true );
}
add_action( 'admin_enqueue_scripts', 'sp_admin_enqueue_scripts' );
?>