Coding Standards: Remove superfluous blank lines at the end of various functions.

Note: This is enforced by WPCS 3.0.0.

Follow-up to [56536], [56547].

Props jrf.
See #59161, #58831.

git-svn-id: https://develop.svn.wordpress.org/trunk@56548 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-09-08 10:01:14 +00:00
parent d790be16dc
commit 1118e37f48
123 changed files with 0 additions and 263 deletions
-1
View File
@@ -1100,7 +1100,6 @@ function wp_admin_bar_appearance_menu( $wp_admin_bar ) {
)
);
}
}
/**
-1
View File
@@ -150,7 +150,6 @@ class Walker_Comment extends Walker {
unset( $children_elements[ $id ] );
}
}
/**
-1
View File
@@ -919,7 +919,6 @@ class WP_Http {
} else {
return ! in_array( $check['host'], $accessible_hosts, true ); // Inverse logic, if it's in the array, then don't block it.
}
}
/**
@@ -118,7 +118,6 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer {
/* translators: Hidden accessibility text. */
__( 'Added:' ) .
" </span>{$line}</td>";
}
/**
-1
View File
@@ -2700,7 +2700,6 @@ function wp_update_comment_count( $post_id, $do_deferred = false ) {
} elseif ( $post_id ) {
return wp_update_comment_count_now( $post_id );
}
}
/**
@@ -62,7 +62,6 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
'get_url' => 'get_header_image',
)
);
}
/**
@@ -183,7 +183,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
throw new Exception( "Supplied nav_menu_item value missing property: $missing" );
}
}
}
/**
@@ -878,7 +877,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
}
}
}
}
/**
-1
View File
@@ -429,5 +429,4 @@ function wp_templating_constants() {
if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
define( 'WP_DEFAULT_THEME', 'twentytwentythree' );
}
}
-2
View File
@@ -4829,7 +4829,6 @@ function smilies_init() {
}
$wp_smiliessearch .= ')(?=' . $spaces . '|$)/m';
}
/**
@@ -5609,7 +5608,6 @@ function _deprecated_constructor( $class_name, $version, $parent_class = '' ) {
}
}
}
}
/**
-2
View File
@@ -2622,7 +2622,6 @@ function the_modified_date( $format = '', $before = '', $after = '', $display =
} else {
return $the_modified_date;
}
}
/**
@@ -4810,7 +4809,6 @@ function register_admin_color_schemes() {
'current' => '#fff',
)
);
}
/**
-1
View File
@@ -2718,7 +2718,6 @@ function get_posts_nav_link( $args = array() ) {
}
}
return $return;
}
/**
-1
View File
@@ -1865,7 +1865,6 @@ function wp_is_jsonp_request() {
$jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );
return $jsonp_enabled;
}
/**
-1
View File
@@ -111,7 +111,6 @@ if ( ! class_exists( 'Translation_Entry', false ) ) :
if ( $this->extracted_comments !== $other->extracted_comments ) {
$this->extracted_comments .= $other->extracted_comments;
}
}
}
endif;
-2
View File
@@ -2439,7 +2439,6 @@ function get_posts( $args = null ) {
$get_posts = new WP_Query();
return $get_posts->query( $parsed_args );
}
//
@@ -3998,7 +3997,6 @@ function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) {
}
return $results ? $results : false;
}
/**
@@ -131,7 +131,6 @@ class WP_REST_Autosaves_Controller extends WP_REST_Revisions_Controller {
'schema' => array( $this, 'get_public_item_schema' ),
)
);
}
/**
@@ -1397,7 +1397,6 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
* @param WP_REST_Request $request Request object.
*/
return apply_filters( "rest_pre_insert_{$this->post_type}", $prepared_post, $request );
}
/**
@@ -1496,7 +1495,6 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
} else {
return delete_post_thumbnail( $post_id );
}
}
/**
@@ -128,7 +128,6 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller {
'schema' => array( $this, 'get_public_item_schema' ),
)
);
}
/**
@@ -54,7 +54,6 @@ class WP_REST_Settings_Controller extends WP_REST_Controller {
'schema' => array( $this, 'get_public_item_schema' ),
)
);
}
/**