Permalink
Browse files

add fallback for the text domain prefix if is not set

  • Loading branch information...
bueltge committed Jun 20, 2018
1 parent 87549ce commit b2115b1bed62cc640956a78620a9b10ddd659070
Showing with 12 additions and 2 deletions.
  1. +5 −0 inc/Core.php
  2. +5 −0 inc/Gutenberg.php
  3. +1 −0 inc/I18n.php
  4. +1 −2 inc/Setup.php
@@ -26,6 +26,11 @@ class Core {
public function __construct( $prefix = null ) {
// Fallback for empty parameter.
if ( null === $prefix ) {
$prefix = 'wp_basis';
}
$this->prefix = $prefix;
$this->wp_update_themes = true;
@@ -29,6 +29,11 @@ class Gutenberg {
*/
public function __construct( $prefix = null ) {
// Fallback for empty parameter.
if ( null === $prefix ) {
$prefix = 'wp_basis';
}
$this->prefix = $prefix;
$this->init();
}
@@ -30,6 +30,7 @@ public function __construct( $prefix = null ) {
if ( null === $prefix ) {
$prefix = 'wp_basis';
}
// string for i18n of theme
$this->text_domain = $prefix;
// folder for language files
@@ -5,7 +5,7 @@
* @package WordPress
* @subpackage WordPress_Basis_Theme
* @since 2012-05-08 0.0.1
* @version 2018-01-03
* @version 2018-06-20
* @author Frank Bültge <frank@bueltge.de>
*/
@@ -17,7 +17,6 @@
* @version 2012-05-08
* @author Frank Bültge <frank@bueltge.de>
*/
namespace Wp_Basis\Setup;
use Wp_Basis\Admin_Branding\Wp_Basis_Admin_Branding;

0 comments on commit b2115b1

Please sign in to comment.