mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Coding Standards: Remove superfluous blank lines at the end of various classes.
Note: This is enforced by WPCS 3.0.0. Follow-up to [56536]. Props jrf. See #59161, #58831. Built from https://develop.svn.wordpress.org/trunk@56547 git-svn-id: http://core.svn.wordpress.org/trunk@56059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b7439d5712
commit
9a49b70239
@ -768,5 +768,4 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
|
||||
return $theme;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -123,5 +123,4 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
|
||||
$output .= '<input type="hidden" class="menu-item-classes" name="menu-item[' . $possible_object_id . '][menu-item-classes]" value="' . esc_attr( implode( ' ', $menu_item->classes ) ) . '" />';
|
||||
$output .= '<input type="hidden" class="menu-item-xfn" name="menu-item[' . $possible_object_id . '][menu-item-xfn]" value="' . esc_attr( $menu_item->xfn ) . '" />';
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -319,5 +319,4 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
<?php
|
||||
$output .= ob_get_clean();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -862,5 +862,4 @@ class WP_Filesystem_Base {
|
||||
public function dirlist( $path, $include_hidden = true, $recursive = false ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -164,5 +164,4 @@ class WP_Privacy_Data_Removal_Requests_List_Table extends WP_Privacy_Requests_Ta
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3633,5 +3633,4 @@ class WP_Site_Health {
|
||||
*/
|
||||
return apply_filters( 'site_status_available_object_cache_services', $services );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -680,5 +680,4 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
*/
|
||||
return apply_filters( 'get_role_list', $role_list, $user_object );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -454,5 +454,4 @@ class TwentyNineteen_SVG_Icons {
|
||||
</svg>',
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -463,7 +463,6 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
|
||||
public static function sanitize_checkbox( $checked ) {
|
||||
return ( ( isset( $checked ) && true === $checked ) ? true : false );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Setup the Theme Customizer settings and controls.
|
||||
|
@ -46,6 +46,5 @@ if ( ! class_exists( 'TwentyTwenty_Script_Loader' ) ) {
|
||||
}
|
||||
return $tag;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
|
||||
public function render_content() {
|
||||
echo '<hr/>';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -335,6 +335,5 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
|
||||
'youtube' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"></path></svg>',
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -384,5 +384,4 @@ class Twenty_Twenty_One_Dark_Mode {
|
||||
. __( 'This website uses LocalStorage to save the setting when Dark Mode support is turned on or off.<br> LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.<br> No data is saved in the database or transferred.', 'twentytwentyone' );
|
||||
wp_add_privacy_policy_content( __( 'Twenty Twenty-One', 'twentytwentyone' ), wp_kses_post( wpautop( $content, false ) ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -249,5 +249,4 @@ class Twenty_Twenty_One_SVG_Icons {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -275,5 +275,4 @@ class Walker_Category extends Walker {
|
||||
|
||||
$output .= "</li>\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -241,5 +241,4 @@ class Walker_Page extends Walker {
|
||||
}
|
||||
$output .= "</li>{$n}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -210,5 +210,4 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
|
||||
public function count() {
|
||||
return count( $this->blocks );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -309,5 +309,4 @@ class WP_Block {
|
||||
|
||||
return $block_content;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -701,7 +701,6 @@ class WP_Customize_Control {
|
||||
* @since 4.1.0
|
||||
*/
|
||||
protected function content_template() {}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -490,5 +490,4 @@ class WP_Dependencies {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -564,5 +564,4 @@ final class WP_Hook implements Iterator, ArrayAccess {
|
||||
public function rewind() {
|
||||
reset( $this->callbacks );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1102,5 +1102,4 @@ class WP_Http {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1043,5 +1043,4 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -100,5 +100,4 @@ class WP_Role {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,5 +30,4 @@ class WP_Text_Diff_Renderer_inline extends Text_Diff_Renderer_inline {
|
||||
$words = str_replace( "\n", $newlineEscape, $words );
|
||||
return $words;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -69,5 +69,4 @@ class WP_Theme_JSON_Data {
|
||||
public function get_data() {
|
||||
return $this->theme_json->get_raw_data();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -446,5 +446,4 @@ class Walker {
|
||||
|
||||
unset( $children_elements[ $id ] );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -82,5 +82,4 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
$this->json['flex_width'] = absint( $this->flex_width );
|
||||
$this->json['flex_height'] = absint( $this->flex_height );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -299,7 +299,6 @@ if ( ! class_exists( 'POMO_StringReader', false ) ) :
|
||||
public function read_all() {
|
||||
return $this->substr( $this->_str, $this->_pos, $this->strlen( $this->_str ) );
|
||||
}
|
||||
|
||||
}
|
||||
endif;
|
||||
|
||||
|
@ -1451,5 +1451,4 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -767,5 +767,4 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -97,5 +97,4 @@ class WP_REST_Blocks_Controller extends WP_REST_Posts_Controller {
|
||||
|
||||
return $this->add_additional_fields_schema( $this->schema );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -369,5 +369,4 @@ class WP_REST_Post_Statuses_Controller extends WP_REST_Controller {
|
||||
'context' => $this->get_context_param( array( 'default' => 'view' ) ),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -202,5 +202,4 @@ class WP_REST_Post_Search_Handler extends WP_REST_Search_Handler {
|
||||
|
||||
return rest_get_route_for_post( $post );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-alpha-56546';
|
||||
$wp_version = '6.4-alpha-56547';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -203,5 +203,4 @@ class WP_Widget_Categories extends WP_Widget {
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -182,5 +182,4 @@ class WP_Widget_Pages extends WP_Widget {
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -91,5 +91,4 @@ class WP_Widget_Search extends WP_Widget {
|
||||
$instance['title'] = sanitize_text_field( $new_instance['title'] );
|
||||
return $instance;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user