mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Quick/Bulk Edit: Improve the inline error messages styling.
- uses the core `notice` styles for the Quick Edit form inline error messages - adds missing periods at the end of a few error messages Props ocean90, karmatosed, melchoyce, afercia. Fixes #35496. git-svn-id: https://develop.svn.wordpress.org/trunk@41684 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -51,7 +51,7 @@ class Tests_XMLRPC_wp_deleteTerm extends WP_XMLRPC_UnitTestCase {
|
||||
$result = $this->myxmlrpcserver->wp_deleteTerm( array( 1, 'editor', 'editor', 'category', '' ) );
|
||||
$this->assertIXRError( $result );
|
||||
$this->assertEquals( 500, $result->code );
|
||||
$this->assertEquals( __('Empty Term'), $result->message );
|
||||
$this->assertEquals( __('Empty Term.'), $result->message );
|
||||
}
|
||||
|
||||
function test_invalid_term() {
|
||||
|
||||
@@ -68,7 +68,7 @@ class Tests_XMLRPC_wp_editTerm extends WP_XMLRPC_UnitTestCase {
|
||||
$result = $this->myxmlrpcserver->wp_editTerm( array( 1, 'editor', 'editor', '', array( 'taxonomy' => 'category' ) ) );
|
||||
$this->assertIXRError( $result );
|
||||
$this->assertEquals( 500, $result->code );
|
||||
$this->assertEquals( __('Empty Term'), $result->message );
|
||||
$this->assertEquals( __('Empty Term.'), $result->message );
|
||||
}
|
||||
|
||||
function test_empty_term_name() {
|
||||
@@ -133,7 +133,7 @@ class Tests_XMLRPC_wp_editTerm extends WP_XMLRPC_UnitTestCase {
|
||||
$result = $this->myxmlrpcserver->wp_editTerm( array( 1, 'editor', 'editor', self::$child_term, array( 'taxonomy' => 'category', 'slug' => $parent_term->slug ) ) );
|
||||
$this->assertIXRError( $result );
|
||||
$this->assertEquals( 500, $result->code );
|
||||
$this->assertEquals( htmlspecialchars( sprintf( __('The slug “%s” is already in use by another term'), $parent_term->slug ) ), $result->message );
|
||||
$this->assertEquals( htmlspecialchars( sprintf( __('The slug “%s” is already in use by another term.'), $parent_term->slug ) ), $result->message );
|
||||
}
|
||||
|
||||
function test_edit_all_fields() {
|
||||
|
||||
@@ -53,7 +53,7 @@ class Tests_XMLRPC_wp_getTerm extends WP_XMLRPC_UnitTestCase {
|
||||
$result = $this->myxmlrpcserver->wp_getTerm( array( 1, 'editor', 'editor', 'category', '' ) );
|
||||
$this->assertIXRError( $result );
|
||||
$this->assertEquals( 500, $result->code );
|
||||
$this->assertEquals( __('Empty Term'), $result->message );
|
||||
$this->assertEquals( __('Empty Term.'), $result->message );
|
||||
}
|
||||
|
||||
function test_invalid_term() {
|
||||
|
||||
Reference in New Issue
Block a user