Skip to content

Commit 35fec88

Browse files
committed
Updated namespace and constant prefix
1 parent 8f1fea4 commit 35fec88

4 files changed

Lines changed: 21 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).
44

5+
## [1.3.1] - 2024-11-29
6+
7+
### Changed
8+
9+
- Namespace and constant prefix.
10+
511
## [1.3.0] - 2024-11-15
612

713
### Changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ composer require s3rgiosan/littlefoot
4242
2. Run `composer install` to install the plugin.
4343
3. Activate the plugin from your WordPress admin area or using WP-CLI.
4444

45-
## Usage
46-
47-
This plugin requires no configuration.
48-
4945
## Options
5046

5147
### `activateDelay`

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Plugin URI: https://github.com/s3rgiosan/littlefoot
66
* Requires at least: 6.4
77
* Requires PHP: 7.4
8-
* Version: 1.3.0
8+
* Version: 1.3.1
99
* Author: Sérgio Santos
1010
* Author URI: https://s3rgiosan.dev/?utm_source=wp-plugins&utm_medium=littlefoot&utm_campaign=author-uri
1111
* License: MIT
@@ -15,18 +15,18 @@
1515
* @package Littlefoot
1616
*/
1717

18-
namespace s3rgiosan\WP\Littlefoot;
18+
namespace S3S\WP\Littlefoot;
1919

2020
// If this file is called directly, abort.
2121
if ( ! defined( 'WPINC' ) ) {
2222
die;
2323
}
2424

25-
define( 'S3RGIOSAN_LITTLEFOOT_PATH', plugin_dir_path( __FILE__ ) );
26-
define( 'S3RGIOSAN_LITTLEFOOT_URL', plugin_dir_url( __FILE__ ) );
25+
define( 'S3S_LITTLEFOOT_PATH', plugin_dir_path( __FILE__ ) );
26+
define( 'S3S_LITTLEFOOT_URL', plugin_dir_url( __FILE__ ) );
2727

28-
if ( file_exists( S3RGIOSAN_LITTLEFOOT_PATH . 'vendor/autoload.php' ) ) {
29-
require_once S3RGIOSAN_LITTLEFOOT_PATH . 'vendor/autoload.php';
28+
if ( file_exists( S3S_LITTLEFOOT_PATH . 'vendor/autoload.php' ) ) {
29+
require_once S3S_LITTLEFOOT_PATH . 'vendor/autoload.php';
3030
}
3131

3232
/**
@@ -45,7 +45,7 @@ function enqueue_assets() {
4545

4646
$asset_file = sprintf(
4747
'%s/build/%s.asset.php',
48-
untrailingslashit( S3RGIOSAN_LITTLEFOOT_PATH ),
48+
untrailingslashit( S3S_LITTLEFOOT_PATH ),
4949
$filename
5050
);
5151

@@ -57,7 +57,7 @@ function enqueue_assets() {
5757
"littlefoot-$asset_handle",
5858
sprintf(
5959
'%s/build/%s.js',
60-
untrailingslashit( S3RGIOSAN_LITTLEFOOT_URL ),
60+
untrailingslashit( S3S_LITTLEFOOT_URL ),
6161
$filename
6262
),
6363
$dependencies,
@@ -74,15 +74,15 @@ function enqueue_assets() {
7474

7575
$asset_file = sprintf(
7676
'%s/build/%s.css',
77-
untrailingslashit( S3RGIOSAN_LITTLEFOOT_PATH ),
77+
untrailingslashit( S3S_LITTLEFOOT_PATH ),
7878
$filename
7979
);
8080

8181
wp_register_style(
8282
"littlefoot-$asset_handle",
8383
sprintf(
8484
'%s/build/%s.css',
85-
untrailingslashit( S3RGIOSAN_LITTLEFOOT_URL ),
85+
untrailingslashit( S3S_LITTLEFOOT_URL ),
8686
$filename
8787
),
8888
[],

0 commit comments

Comments
 (0)