Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9bd70cb

Browse files
Merge pull request #394 from codepress/release/4.7.1
Release/4.7.1
2 parents e847d8b + 14edf65 commit 9bd70cb

File tree

11 files changed

+676
-170
lines changed

11 files changed

+676
-170
lines changed

‎assets/css/table.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎assets/js/table.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace AC\ApplyFilter;
4+
5+
class QueryTotalNumber
6+
{
7+
8+
public function apply_filter(int $limit = 250): int
9+
{
10+
return (int)apply_filters('ac/select/query/limit', $limit);
11+
}
12+
13+
}

‎codepress-admin-columns.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
Plugin Name: Admin Columns
4-
Version: 4.7
4+
Version: 4.7.1
55
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
66
Author: AdminColumns.com
77
Author URI: https://www.admincolumns.com
@@ -37,7 +37,7 @@
3737
}
3838

3939
define('AC_FILE', __FILE__);
40-
define('AC_VERSION', '4.7');
40+
define('AC_VERSION', '4.7.1');
4141

4242
require_once __DIR__ . '/classes/Dependencies.php';
4343

‎languages/codepress-admin-columns.pot‎

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2023 Admin Columns
1+
# Copyright (C) 2024 Admin Columns
22
# This file is distributed under the same license as the Admin Columns package.
33
msgid ""
44
msgstr ""
@@ -8,15 +8,15 @@ msgstr ""
88
"Content-Transfer-Encoding: 8bit\n"
99
"Language-Team: Admin Columns <info@admincolumns.com>\n"
1010
"Last-Translator: Codepress <info@codepress.nl\n"
11-
"POT-Creation-Date: 2023年12月06日 10:06+0000\n"
11+
"POT-Creation-Date: 2024年01月09日 09:08+0000\n"
1212
"X-Poedit-Basepath: ..\n"
1313
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
1414
"X-Poedit-SearchPath-0: .\n"
1515
"X-Poedit-SearchPathExcluded-0: *.js\n"
1616
"X-Poedit-SourceCharset: UTF-8\n"
1717
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1818

19-
#: classes/ColumnGroups.php:12, classes/Settings/Column/CustomFieldType.php:203, classes/Settings/Column/Image.php:72, classes/Settings/Column/Separator.php:35, templates/admin/help-tab/custom-fields.php:6, classes/Helper/Select/Generic/GroupFormatter/BlogSite.php:20, classes/Helper/Select/Generic/GroupFormatter/VisibilityType.php:17
19+
#: classes/ColumnGroups.php:12, templates/admin/list-screen-settings-mockup.php:132, classes/Settings/Column/CustomFieldType.php:203, classes/Settings/Column/Image.php:72, classes/Settings/Column/Separator.php:35, templates/admin/help-tab/custom-fields.php:6, classes/Helper/Select/Generic/GroupFormatter/BlogSite.php:20, classes/Helper/Select/Generic/GroupFormatter/VisibilityType.php:17
2020
msgid "Default"
2121
msgstr ""
2222

@@ -392,95 +392,99 @@ msgstr ""
392392
msgid "Table Views"
393393
msgstr ""
394394

395-
#: templates/admin/list-screen-settings-mockup.php:14, templates/admin/list-screen-settings-mockup.php:37
395+
#: templates/admin/list-screen-settings-mockup.php:14, templates/admin/list-screen-settings-mockup.php:49
396396
msgid "optional"
397397
msgstr ""
398398

399-
#: templates/admin/list-screen-settings-mockup.php:21
399+
#: templates/admin/list-screen-settings-mockup.php:23
400400
msgid "Unlock with Admin Columns Pro"
401401
msgstr ""
402402

403-
#: templates/admin/list-screen-settings-mockup.php:23, templates/admin/modal-pro.php:41
403+
#: templates/admin/list-screen-settings-mockup.php:29, templates/admin/modal-pro.php:41
404404
msgid "Upgrade"
405405
msgstr ""
406406

407-
#: templates/admin/list-screen-settings-mockup.php:29
407+
#: templates/admin/list-screen-settings-mockup.php:35
408408
msgid "Conditionals"
409409
msgstr ""
410410

411-
#: templates/admin/list-screen-settings-mockup.php:30
411+
#: templates/admin/list-screen-settings-mockup.php:36
412412
msgid "Make this table view available only for specific users or roles."
413413
msgstr ""
414414

415-
#: templates/admin/list-screen-settings-mockup.php:36, classes/Settings/Column/User.php:89
415+
#: templates/admin/list-screen-settings-mockup.php:47, classes/Settings/Column/User.php:89
416416
msgid "Roles"
417417
msgstr ""
418418

419-
#: templates/admin/list-screen-settings-mockup.php:48
419+
#: templates/admin/list-screen-settings-mockup.php:60
420420
msgid "Table Elements"
421421
msgstr ""
422422

423-
#: templates/admin/list-screen-settings-mockup.php:49
423+
#: templates/admin/list-screen-settings-mockup.php:61
424424
msgid "Show or hide elements from the table list screen."
425425
msgstr ""
426426

427-
#: templates/admin/list-screen-settings-mockup.php:57
427+
#: templates/admin/list-screen-settings-mockup.php:72
428428
msgid "Inline Edit"
429429
msgstr ""
430430

431-
#: templates/admin/list-screen-settings-mockup.php:58, templates/tooltip/bulk-editing.php:27
431+
#: templates/admin/list-screen-settings-mockup.php:73, templates/tooltip/bulk-editing.php:27
432432
msgid "Bulk Edit"
433433
msgstr ""
434434

435-
#: templates/admin/list-screen-settings-mockup.php:59
435+
#: templates/admin/list-screen-settings-mockup.php:74
436436
msgid "Filters"
437437
msgstr ""
438438

439-
#: templates/admin/list-screen-settings-mockup.php:60, templates/tooltip/filtering.php:16, templates/admin/page/settings-section-pro-cta.php:29
439+
#: templates/admin/list-screen-settings-mockup.php:75, templates/tooltip/filtering.php:16, templates/admin/page/settings-section-pro-cta.php:29
440440
msgid "Smart Filters"
441441
msgstr ""
442442

443-
#: templates/admin/list-screen-settings-mockup.php:61, templates/tooltip/export.php:7, classes/Settings/Column/Pro/Export.php:11
443+
#: templates/admin/list-screen-settings-mockup.php:76, templates/tooltip/export.php:7, classes/Settings/Column/Pro/Export.php:11
444444
msgid "Export"
445445
msgstr ""
446446

447-
#: templates/admin/list-screen-settings-mockup.php:62, templates/admin/page/settings-section-pro-cta.php:146
447+
#: templates/admin/list-screen-settings-mockup.php:77, templates/admin/page/settings-section-pro-cta.php:146
448448
msgid "Add Row"
449449
msgstr ""
450450

451-
#: templates/admin/list-screen-settings-mockup.php:63
451+
#: templates/admin/list-screen-settings-mockup.php:78
452452
msgid "Status (Quick Links)"
453453
msgstr ""
454454

455-
#: templates/admin/list-screen-settings-mockup.php:64
455+
#: templates/admin/list-screen-settings-mockup.php:79
456456
msgid "Search"
457457
msgstr ""
458458

459-
#: templates/admin/list-screen-settings-mockup.php:65
459+
#: templates/admin/list-screen-settings-mockup.php:80
460460
msgid "Bulk Actions"
461461
msgstr ""
462462

463-
#: templates/admin/list-screen-settings-mockup.php:80
463+
#: templates/admin/list-screen-settings-mockup.php:98
464464
msgid "Preferences"
465465
msgstr ""
466466

467-
#: templates/admin/list-screen-settings-mockup.php:81
467+
#: templates/admin/list-screen-settings-mockup.php:99
468468
msgid "Set default settings that users will see when they visit the list table."
469469
msgstr ""
470470

471-
#: templates/admin/list-screen-settings-mockup.php:87, templates/admin/page/settings-section-pro-cta.php:92
471+
#: templates/admin/list-screen-settings-mockup.php:108, templates/admin/page/settings-section-pro-cta.php:92
472472
msgid "Horizontal Scrolling"
473473
msgstr ""
474474

475-
#: templates/admin/list-screen-settings-mockup.php:101, templates/settings/setting-label-icons.php:223, templates/tooltip/sorting-include-empty.php:9, templates/tooltip/sorting.php:7, classes/Settings/Column/Pro/Sorting.php:11
475+
#: templates/admin/list-screen-settings-mockup.php:126, templates/settings/setting-label-icons.php:223, templates/tooltip/sorting-include-empty.php:9, templates/tooltip/sorting.php:7, classes/Settings/Column/Pro/Sorting.php:11
476476
msgid "Sorting"
477477
msgstr ""
478478

479-
#: templates/admin/list-screen-settings-mockup.php:119
479+
#: templates/admin/list-screen-settings-mockup.php:135
480+
msgid "Ascending"
481+
msgstr ""
482+
483+
#: templates/admin/list-screen-settings-mockup.php:144
480484
msgid "Pre-applied Filters"
481485
msgstr ""
482486

483-
#: templates/admin/list-screen-settings-mockup.php:123
487+
#: templates/admin/list-screen-settings-mockup.php:149
484488
msgid "No public saved filters available."
485489
msgstr ""
486490

‎readme.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ You can find a list of the available actions and filters (and examples on how to
209209

210210
== Changelog ==
211211

212+
= 4.7.1 =
213+
Release Date: January 9th, 2024
214+
215+
* [Fixed] When the edit columns button was disabled, a styled container was displayed
216+
212217
= 4.7 =
213218
Release Date: December 6th, 2023
214219

‎src/js/table.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ AC_SERVICES.addListener(EventConstants.TABLE.READY, (event: TableEventPayload) =
9898
document.querySelectorAll<HTMLElement>('[data-component="ac-json"]').forEach(el => {
9999
new JsonViewer(el);
100100
})
101+
102+
event.table.Actions?.refresh();
101103
});

‎src/js/table/actions.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,26 @@ export default class Actions {
122122
return this.container;
123123
}
124124

125+
toggle( show: boolean = true ){
126+
if( show ){
127+
this.getElement().classList.remove( '-hidden' )
128+
} else {
129+
this.getElement().classList.add( '-hidden' )
130+
}
131+
132+
}
133+
125134
refresh() {
126135
this.buttons.getButtons().forEach(button => {
127136
if (button.isHidden()) {
128137
button.getElement().getElement().remove();
129138
} else {
130139
this.container.querySelector('.ac-table-actions-buttons')?.append(button.getElement().getElement());
131140
}
132-
133141
});
142+
143+
this.toggle( this.buttons.getButtons().length !== 0 )
144+
134145
}
135146

136147
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /