mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@56547 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -390,6 +390,5 @@ class WP_PHPUnit_Util_Getopt {
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
new WP_PHPUnit_Util_Getopt( $_SERVER['argv'] );
|
||||
|
||||
@@ -246,5 +246,4 @@ abstract class WP_UnitTest_Factory_For_Thing {
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -206,7 +206,6 @@ class WP_Filesystem_MockFS extends WP_Filesystem_Base {
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MockFS_Node {
|
||||
|
||||
@@ -36,7 +36,6 @@ if ( class_exists( 'PHPUnit\Runner\Version' ) && version_compare( PHPUnit\Runner
|
||||
|
||||
return array_unique( $tickets );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,5 +34,4 @@ abstract class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -287,5 +287,4 @@ class Tests_Admin_IncludesTemplate extends WP_UnitTestCase {
|
||||
// This doesn't actually get removed due to the invalid priority.
|
||||
remove_meta_box( 'dashboard2', 'dashboard', 'normal' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -213,5 +213,4 @@ OPTIONS;
|
||||
);
|
||||
$this->assertSame( $expected, $this->table->get_views() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,5 +35,4 @@ class Tests_Admin_wpPostCommentsListTable extends WP_UnitTestCase {
|
||||
);
|
||||
$this->assertSame( $expected, $this->table->get_views() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -330,5 +330,4 @@ class Tests_Admin_wpPostsListTable extends WP_UnitTestCase {
|
||||
|
||||
$this->assertSame( $expected, $actual );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -68,5 +68,4 @@ class Tests_Attachment_Slashes extends WP_UnitTestCase {
|
||||
$this->assertSame( wp_unslash( self::SLASH_4 ), $post->post_content_filtered );
|
||||
$this->assertSame( wp_unslash( self::SLASH_6 ), $post->post_excerpt );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -279,5 +279,4 @@ class Tests_Avatar extends WP_UnitTestCase {
|
||||
$this->assertFalse( is_avatar_comment_type( $comment_type ) );
|
||||
$this->assertFalse( $actual_data['url'] );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -205,5 +205,4 @@ class Tests_Blocks_Context extends WP_UnitTestCase {
|
||||
|
||||
$this->assertSame( array( 'example' => 'ok' ), $provided_context[0] );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -521,5 +521,4 @@ class Tests_Blocks_Render extends WP_UnitTestCase {
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -54,5 +54,4 @@ class Tests_Blocks_Serialize extends WP_UnitTestCase {
|
||||
$this->assertSame( 'example', strip_core_block_namespace( 'core/example' ) );
|
||||
$this->assertSame( 'plugin/example', strip_core_block_namespace( 'plugin/example' ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -102,5 +102,4 @@ class Tests_Blocks_wpBlockList extends WP_UnitTestCase {
|
||||
|
||||
$this->assertCount( 1, $blocks );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -65,5 +65,4 @@ class Tests_Canonical_HTTPS extends WP_Canonical_UnitTestCase {
|
||||
|
||||
remove_filter( 'home_url', array( $this, 'set_https' ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,5 +26,4 @@ class Tests_Canonical_Paged extends WP_Canonical_UnitTestCase {
|
||||
// Non-existing page should redirect to the permalink.
|
||||
$this->assertCanonical( $link . '4/', $link );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -12,5 +12,4 @@ class Tests_Canonical_Robots extends WP_Canonical_UnitTestCase {
|
||||
$this->assertCanonical( '/robots.txt', '/robots.txt' );
|
||||
$this->assertCanonical( '/robots.txt/', '/robots.txt' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -126,5 +126,4 @@ class Tests_Comment_CommentTime extends WP_UnitTestCase {
|
||||
|
||||
$this->assertSame( '', $actual );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -87,5 +87,4 @@ class Tests_Comment_GetCommentReplyLink extends WP_UnitTestCase {
|
||||
|
||||
$this->assertNull( $actual );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -72,5 +72,4 @@ class Tests_Comment_IsAvatarCommentType extends WP_UnitTestCase {
|
||||
$types[] = 'review';
|
||||
return $types;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -194,5 +194,4 @@ class Tests_Comment_Slashes extends WP_UnitTestCase {
|
||||
$this->assertSame( wp_unslash( self::SLASH_2 ), $comment->comment_author );
|
||||
$this->assertSame( wp_unslash( self::SLASH_4 ), $comment->comment_content );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -199,5 +199,4 @@ class Tests_Comment_Template extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1283,5 +1283,4 @@ class Tests_Cron extends WP_UnitTestCase {
|
||||
$this->assertWPError( $unscheduled );
|
||||
$this->assertSame( 'could_not_set', $unscheduled->get_error_code() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3669,5 +3669,4 @@ class Test_Setting_Without_Applying_Validate_Filter extends WP_Customize_Setting
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -237,5 +237,4 @@ class Custom_Panel_Test extends WP_Customize_Panel {
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -239,5 +239,4 @@ class Custom_Section_Test extends WP_Customize_Section {
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -128,5 +128,4 @@ class Tests_Functions_wpSanitizeScriptAttributes extends WP_UnitTestCase {
|
||||
|
||||
remove_theme_support( 'html5' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -364,5 +364,4 @@ class WP_Navigation_Fallback_Test extends WP_UnitTestCase {
|
||||
|
||||
return $navs_in_db->posts ? $navs_in_db->posts : array();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -79,5 +79,4 @@ class Tests_Filesystem_CopyDir extends WP_UnitTestCase {
|
||||
$this->assertDirectoryExists( $to . 'subfolder1/', 'The destination subfolder was not created.' );
|
||||
$this->assertFileExists( $to . 'subfolder1/file2.txt', 'The destination subfolder file was not created.' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -113,5 +113,4 @@ class WP_Filesystem_Find_Folder_Test extends WP_Filesystem_UnitTestCase {
|
||||
$path = $fs->find_folder( '/var/www/example.com/sub/wp-content/plugins/' );
|
||||
$this->assertSame( '/example.com/sub/wp-content/plugins/', $path );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -308,5 +308,4 @@ class Tests_Filesystem_MoveDir extends WP_UnitTestCase {
|
||||
'An unexpected error code was returned.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -276,5 +276,4 @@ EOT;
|
||||
$this->assertSame( '//[::FFFF::127.0.0.1]/?foo%5Bbar%5D=baz', esc_url( '//[::FFFF::127.0.0.1]/?foo[bar]=baz' ) );
|
||||
$this->assertSame( 'http://[::FFFF::127.0.0.1]/?foo%5Bbar%5D=baz', esc_url( 'http://[::FFFF::127.0.0.1]/?foo[bar]=baz' ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -518,5 +518,4 @@ class Tests_Formatting_MakeClickable extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -171,5 +171,4 @@ class Tests_Formatting_MapDeep extends WP_UnitTestCase {
|
||||
public function append_baba( $value ) {
|
||||
return $value . 'baba';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,5 +44,4 @@ class Tests_Formatting_UrlencodeDeep extends WP_UnitTestCase {
|
||||
|
||||
$this->assertSame( $expected, urlencode_deep( $actual ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -45,5 +45,4 @@ class Tests_Formatting_wpMakeLinkRelative extends WP_UnitTestCase {
|
||||
$relative_link = wp_make_link_relative( $link );
|
||||
$this->assertSame( '', $relative_link );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -101,5 +101,4 @@ class Tests_Formatting_wpSlash extends WP_UnitTestCase {
|
||||
$this->assertSame( array( 'a' => $new ), wp_slash( array( 'a' => $old ) ) ); // Keyed array.
|
||||
$this->assertSame( array( $new ), wp_slash( array( $old ) ) ); // Non-keyed.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -136,5 +136,4 @@ class Tests_Formatting_wpTargetedLinkRel extends WP_UnitTestCase {
|
||||
$expected = '<p>Links: <a href="/" target="_blank" rel="ugc noopener">No rel</a></p>';
|
||||
$this->assertSame( $expected, wp_targeted_link_rel( $content ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2160,5 +2160,4 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
);
|
||||
$this->assertSameSetsWithIndex( $theme_json, $expected_theme_json );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -61,5 +61,4 @@ class Tests_Functions_AddMagicQuotes extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -320,5 +320,4 @@ class Tests_Functions_Anonymization extends WP_UnitTestCase {
|
||||
}
|
||||
return $anonymous;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -88,5 +88,4 @@ class Tests_Functions_CanonicalCharset extends WP_UnitTestCase {
|
||||
|
||||
update_option( 'blog_charset', $orig_blog_charset );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -289,5 +289,4 @@ class Tests_Functions_DoEnclose extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -33,5 +33,4 @@ class Tests_Functions_IsNewDate extends WP_UnitTestCase {
|
||||
array( '21.05.19', false, 1 ),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,5 +16,4 @@ class Tests_Functions_WP extends WP_UnitTestCase {
|
||||
$this->assertInstanceOf( 'WP_Query', $wp_query );
|
||||
$this->assertInstanceOf( 'WP_Query', $wp_the_query );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -108,5 +108,4 @@ class Tests_Functions_wpFuzzyNumberMatch extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1161,5 +1161,4 @@ class Tests_Functions_wpListUtil extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -249,5 +249,4 @@ class Tests_General_wpPreloadResources extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,5 +42,4 @@ class Tests_Hooks_ApplyFilters extends WP_UnitTestCase {
|
||||
$this->assertSame( $returned_two, $arg );
|
||||
$this->assertSame( 2, $a->get_call_count() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -487,6 +487,4 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
|
||||
$this->skipTestOnTimeout( $res );
|
||||
$this->assertNotWPError( $res );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -181,5 +181,4 @@ class Tests_Image_Dimensions extends WP_UnitTestCase {
|
||||
// dst_x, dst_y, src_x, src_y, dst_w, dst_h, src_w, src_h.
|
||||
$this->assertSame( array( 0, 0, 0, 40, 400, 500, 480, 600 ), $out );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -363,5 +363,4 @@ class Tests_Image_Editor extends WP_Image_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -38,5 +38,4 @@ class Test_Image_Resize_GD extends WP_Tests_Image_Resize_UnitTestCase {
|
||||
$this->assertInstanceOf( 'WP_Error', $image );
|
||||
$this->assertSame( 'invalid_image', $image->get_error_code() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -208,5 +208,4 @@ class Tests_Image_Size extends WP_UnitTestCase {
|
||||
|
||||
$content_width = $_content_width;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,5 +37,4 @@ class Tests_Link_GetNextCommentsLink extends WP_UnitTestCase {
|
||||
|
||||
set_query_var( 'cpage', $cpage );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -14,5 +14,4 @@ class Tests_Link_GetPostPermalink extends WP_UnitTestCase {
|
||||
public function test_get_post_permalink_should_return_false_for_non_existing_post() {
|
||||
$this->assertFalse( get_post_permalink( -1 ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -83,5 +83,4 @@ class Tests_Link_GetPreviewPostLink extends WP_UnitTestCase {
|
||||
|
||||
$this->assertSame( '', get_preview_post_link( $post ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,5 +35,4 @@ class Tests_Link_GetPreviousCommentsLink extends WP_UnitTestCase {
|
||||
|
||||
set_query_var( 'cpage', $cpage );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -104,5 +104,4 @@ class Tests_Link_GetThePostsNavigation extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -182,5 +182,4 @@ class Tests_Link_ThemeFile extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -51,5 +51,4 @@ class Tests_Meta_isProtectedMeta extends WP_UnitTestCase {
|
||||
|
||||
return $unprotected_keys;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -105,5 +105,4 @@ class Tests_Meta_UpdateMetadata extends WP_UnitTestCase {
|
||||
$found = get_metadata( 'post', $post_id, 'key', true );
|
||||
$this->assertSame( 'value2', $found );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user