Skip to content

Commit 536d581

Browse files
authored
Merge pull request #13 from rtCamp/chore/refactor-plugin
Chore: cleanup unused dependencies, add proper uninstall, and fix installation
2 parents 3c8b19d + c47879d commit 536d581

File tree

6 files changed

+735
-6
lines changed

6 files changed

+735
-6
lines changed

assets/src/patterns-popover/components/MemoizedPatternPreview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const ProviderSiteInfo = memo( ( { providerSite } ) => {
4949
return (
5050
<div className="od-pattern-provider-site-name">
5151
<p>
52-
{ __( 'Provider Site: ', 'onedesign' ) }
52+
{ __( 'Provider Site:', 'onedesign' ) }
5353
<span className="od-provider-site-name">{ providerSite }</span>
5454
</p>
5555
</div>

inc/classes/class-plugin.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ class Plugin {
2222
* Construct method.
2323
*/
2424
protected function __construct() {
25+
$this->setup();
26+
}
27+
28+
/**
29+
* Setup hooks for the plugin.
30+
*/
31+
private function setup(): void {
2532
// Load plugin classes.
2633
Assets::get_instance();
2734
Rest::get_instance();

0 commit comments

Comments
 (0)