Skip to content

Commit 129864b

Browse files
committed
add Text Domain to plugin
1 parent 4647eab commit 129864b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/wp-admin/includes/plugin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup
159159
load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) );
160160
}
161161
}
162-
} elseif ( 'hello.php' === basename( $plugin_file ) ) {
163-
$textdomain = 'default';
164162
}
165163
if ( $textdomain ) {
166164
foreach ( array( 'Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version' ) as $field ) {

src/wp-content/plugins/hello-dolly/hello.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Author: Matt Mullenweg
1111
Version: 1.7.2
1212
Author URI: http://ma.tt/
13+
Text Domain: hello-dolly
1314
*/
1415

1516
function hello_dolly_get_lyric() {

0 commit comments

Comments
 (0)