Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit 9d0a2f6

Browse files
authored
Revert "CS: fix capitalization in class names" (#49)
Revert "CS: fix capitalization in class names"
2 parents 50c6996 + 86400f3 commit 9d0a2f6

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<rule ref="Yoast">
3939
<!-- Can't be helped, textdomain is passed in dynamically, that's the nature of this module. -->
4040
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralDomain"/>
41+
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
4142
</rule>
4243

4344

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 3.1.1
8+
9+
### Fixed
10+
- Reverts the capitalization of the class names.
11+
712
## 3.1.0
813

914
### Fixed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Alternatively you can include the library as a submodule.
2222
Make sure the class is loaded and instantiate it like this:
2323

2424
```php
25-
new Yoast_I18n_V3(
25+
new Yoast_I18n_v3(
2626
array(
2727
'textdomain' => '{your text domain}',
2828
'project_slug' => '{your probject slug}',
@@ -39,7 +39,7 @@ new Yoast_I18n_V3(
3939
Because translate.wordpress.org is also a GlotPress installation you can use the i18n-module to promote translation your plugin on there. To do this you can use the dedicated wordpress.org class:
4040

4141
```php
42-
new Yoast_I18n_WordPressOrg_V3(
42+
new Yoast_I18n_WordPressOrg_v3(
4343
array(
4444
'textdomain' => '{your text domain}',
4545
'plugin_name' => '{your plugin name}',
@@ -53,7 +53,7 @@ new Yoast_I18n_WordPressOrg_V3(
5353
Since 3.0.0 you can also decide to render the message in a message-box of your own, just provide the second argument to the constructor as `false` to disable the showing of the box by the module itself.
5454

5555
```php
56-
$i18n_module = new Yoast_I18n_V3(
56+
$i18n_module = new Yoast_I18n_v3(
5757
array(
5858
'textdomain' => '{your text domain}',
5959
'project_slug' => '{your probject slug}',
@@ -71,7 +71,7 @@ $message = $i18n_module->get_promo_message();
7171
```
7272

7373
```php
74-
$i18n_module = new Yoast_I18n_WordPressOrg_V3(
74+
$i18n_module = new Yoast_I18n_WordPressOrg_v3(
7575
array(
7676
'textdomain' => '{your text domain}',
7777
'plugin_name' => '{your plugin name}',

src/i18n-v3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This class defines a promo box and checks your translation site's API for stats about it,
1010
* then shows them to the user.
1111
*/
12-
class Yoast_I18n_V3 {
12+
class Yoast_I18n_v3 {
1313

1414
/**
1515
* Your translation site's logo.

src/i18n-wordpressorg-v3.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
/**
99
* The Yoast i18n module with a connection to WordPress.org.
1010
*/
11-
class Yoast_I18n_WordPressOrg_V3 {
11+
class Yoast_I18n_WordPressOrg_v3 {
1212

1313
/**
1414
* The i18n object that presents the user with the notification.
1515
*
16-
* @var yoast_i18n_V3
16+
* @var yoast_i18n_v3
1717
*/
1818
protected $i18n;
1919

@@ -28,7 +28,7 @@ class Yoast_I18n_WordPressOrg_V3 {
2828
public function __construct( $args, $show_translation_box = true ) {
2929
$args = $this->set_defaults( $args );
3030

31-
$this->i18n = new Yoast_I18n_V3( $args, $show_translation_box );
31+
$this->i18n = new Yoast_I18n_v3( $args, $show_translation_box );
3232
$this->set_api_url( $args['textdomain'] );
3333
}
3434

0 commit comments

Comments
 (0)