Skip to content

Commit ce60059

Browse files
committed
Add update mechanism and vendor folder
1 parent 4c35d93 commit ce60059

132 files changed

Lines changed: 12422 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#---------------------------
22
# Project
33
#---------------------------
4-
vendor/
54
node_modules/
65
.node_history
76
package-lock.json

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.4.0] - 2024-11-30
6+
7+
### Added
8+
9+
- Update mechanism and vendor folder.
10+
511
## [1.3.1] - 2024-11-29
612

713
### Changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"autoload": {},
1616
"require": {
1717
"php": "^7.4|^8.0",
18-
"composer-plugin-api": "^2.3"
18+
"composer-plugin-api": "^2.3",
19+
"yahnis-elsts/plugin-update-checker": "^5.5"
1920
},
2021
"require-dev": {
2122
"pixelalbatross/coding-standards": "dev-main"

composer.lock

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

plugin.php

Lines changed: 11 additions & 1 deletion
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.1
8+
* Version: 1.4.0
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
@@ -17,6 +17,8 @@
1717

1818
namespace S3S\WP\Littlefoot;
1919

20+
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
21+
2022
// If this file is called directly, abort.
2123
if ( ! defined( 'WPINC' ) ) {
2224
die;
@@ -29,6 +31,14 @@
2931
require_once S3S_LITTLEFOOT_PATH . 'vendor/autoload.php';
3032
}
3133

34+
$updater = PucFactory::buildUpdateChecker(
35+
'https://github.com/s3rgiosan/littlefoot/',
36+
__FILE__,
37+
'littlefoot'
38+
);
39+
40+
$updater->setBranch( 'main' );
41+
3242
/**
3343
* Register assets.
3444
*

vendor/autoload.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
// autoload.php @generated by Composer
4+
5+
if (PHP_VERSION_ID < 50600) {
6+
if (!headers_sent()) {
7+
header('HTTP/1.1 500 Internal Server Error');
8+
}
9+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10+
if (!ini_get('display_errors')) {
11+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12+
fwrite(STDERR, $err);
13+
} elseif (!headers_sent()) {
14+
echo $err;
15+
}
16+
}
17+
trigger_error(
18+
$err,
19+
E_USER_ERROR
20+
);
21+
}
22+
23+
require_once __DIR__ . '/composer/autoload_real.php';
24+
25+
return ComposerAutoloaderInit92fc31279d17ec6756157627b1dd173c::getLoader();

0 commit comments

Comments
 (0)