Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • bugfix/require-interface
  • bugfix/require-once-error
  • devel
  • feat/lang
  • feat/translations
  • feat/upgrade_to_pro_url
  • feature/activation-hooks
  • feature/builder-pattern
  • feature/hookable-object
  • feature/plugin-activation
  • feature/template-loader
  • feature/template-renderer
  • fix/deprecated_functions
  • master
  • 1.0
  • 1.1
  • 1.2.0
  • 1.3.0
  • 1.3.1
  • 1.3.2
  • 1.3.3
  • 1.4
  • 1.4.1
  • 1.4.2
  • 1.4.3
  • 1.4.4
  • 2.0.0
  • 2.0.0-beta1
  • 2.1.0
  • 2.1.1
  • 2.1.2
31 results

Target

Select target project
  • wpdesk/wp-builder
1 result
Select Git revision
  • bugfix/require-interface
  • bugfix/require-once-error
  • devel
  • feat/lang
  • feat/translations
  • feat/upgrade_to_pro_url
  • feature/activation-hooks
  • feature/builder-pattern
  • feature/hookable-object
  • feature/plugin-activation
  • feature/template-loader
  • feature/template-renderer
  • fix/deprecated_functions
  • master
  • 1.0
  • 1.1
  • 1.2.0
  • 1.3.0
  • 1.3.1
  • 1.3.2
  • 1.3.3
  • 1.4
  • 1.4.1
  • 1.4.2
  • 1.4.3
  • 1.4.4
  • 2.0.0
  • 2.0.0-beta1
  • 2.1.0
  • 2.1.1
  • 2.1.2
31 results
Show changes
Commits on Source (3)
## [Unreleased]
### Removed
- Do not load translations from plugin hook. Leave it to other libraries and processes.
## [2.1.1] - 2023-12-12
### Fixed
- fixed deprecated load_plugin_textdomain function required by the WordPress repository checker. False is no longer a valid option at position 2
......
......@@ -152,22 +152,13 @@ abstract class AbstractPlugin extends SlimPlugin {
protected function hooks() {
add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
add_action( 'wp_enqueue_scripts', [ $this, 'wp_enqueue_scripts' ] );
add_action( 'plugins_loaded', [ $this, 'load_plugin_text_domain' ] );
add_filter( 'plugin_action_links_' . plugin_basename( $this->get_plugin_file_path() ), [
$this,
'links_filter'
] );
}
/**
* Initialize plugin test domain. This is a hook function. Do not execute directly.
*
* @return void
*/
public function load_plugin_text_domain() {
load_plugin_textdomain( $this->get_text_domain(), '', $this->get_namespace() . '/lang/' );
}
/**
/**
* Append JS scripts in the WordPress admin panel. This is a hook function. Do not execute directly.
*
* @return void
......