-
Notifications
You must be signed in to change notification settings - Fork 2
Chore/update elfinder #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
05ece72
a6c9f0e
9e8c3e7
609db09
558c1a3
75fc02b
11420bb
b39777a
d23fba0
fd8deba
b09b4bc
3f5e9da
fa93728
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| name: WordPress Plugin Check | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| env: | ||
| PLUGIN_SLUG: file-manager | ||
|
|
||
| jobs: | ||
| plugin-check: | ||
| name: Plugin Check | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 1 | ||
|
|
||
| - name: Setup PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: '8.1' | ||
| coverage: none | ||
| tools: composer:v2, wp-cli | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| run_install: false | ||
|
|
||
| - name: Get pnpm store directory | ||
| id: pnpm-cache | ||
| shell: bash | ||
| run: | | ||
| echo "dir=$(pnpm store path --silent)" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Get composer cache directory | ||
| id: composer-cache | ||
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Setup package cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ${{ steps.pnpm-cache.outputs.dir }} | ||
| ${{ steps.composer-cache.outputs.dir }} | ||
| key: ${{ runner.os }}-plugin-check-${{ hashFiles('**/pnpm-lock.yaml', '**/composer.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-plugin-check- | ||
|
|
||
| - name: Build plugin | ||
| run: | | ||
| pnpm production | ||
| pnpm build:copy | ||
|
|
||
| - name: WordPress Plugin Check | ||
| uses: wordpress/plugin-check-action@v1 | ||
| with: | ||
| build-dir: './build/${{ env.PLUGIN_SLUG }}' | ||
| exclude-directories: | | ||
| vendor | ||
| node_modules | ||
| libs | ||
| categories: | | ||
| general | ||
| security | ||
| performance | ||
| accessibility | ||
| plugin_repo | ||
| checks: | | ||
| i18n_usage | ||
| late_escaping | ||
| plugin_readme | ||
| file_type | ||
| performant_wp_query_params | ||
| plugin_updater | ||
| enqueued_scripts_size | ||
| plugin_review_phpcs | ||
| trademarks |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,9 @@ public function all(Request $request) | |
|
|
||
| public function delete(DeleteLogRequest $request) | ||
| { | ||
| $validatedIds = array_map(function($id) { return intval($id);}, $request->ids); | ||
| $validatedIds = array_map(function ($id) { | ||
| return \intval($id); | ||
| }, $request->ids); | ||
|
Comment on lines
+35
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| $status = $this->logger->delete($validatedIds); | ||
| if ($status) { | ||
| return Response::success([])->message('log deleted successfully'); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,6 @@ | |
|
|
||
| namespace BitApps\FM\Model; | ||
|
|
||
| use BitApps\FM\Config; | ||
| use BitApps\FM\Vendor\BitApps\WPDatabase\Model; | ||
|
|
||
| /** | ||
|
|
@@ -20,4 +19,9 @@ class User extends Model | |
| protected $prefix = ''; | ||
|
|
||
| protected $fillable = []; | ||
|
|
||
| public function log() | ||
| { | ||
| return $this->hasMany(Log::class, 'user_id', 'ID'); | ||
| } | ||
|
Comment on lines
+23
to
+26
|
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Config::VERSION is set to '6.8.9' but the readme.txt shows version 6.8.7 and the file-manager.php header shows 6.8.7. All version numbers across the plugin should be consistent.