Skip to content

Commit 8097b72

Browse files
Merge pull request #283 from codepress/release/4.1.4
Release/4.1.4
2 parents 1be0544 + ec16bd1 commit 8097b72

File tree

10 files changed

+62
-42
lines changed

10 files changed

+62
-42
lines changed

assets/js/admin-page-columns.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.

assets/js/admin-page-columns.js.map

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.

classes/ListTable/Comment.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ public function __construct( WP_Comments_List_Table $table ) {
1818

1919
public function get_column_value( $column, $id ) {
2020
ob_start();
21-
$this->table->column_default( get_comment( $id ), $column );
21+
22+
$method = 'column_' . $column;
23+
24+
if ( method_exists( $this->table, $method ) ) {
25+
call_user_func( [ $this->table, $method ], get_comment( $id ) );
26+
} else {
27+
$this->table->column_default( get_comment( $id ), $column );
28+
}
2229

2330
return ob_get_clean();
2431
}

classes/ListTable/Post.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ public function __construct( WP_Posts_List_Table $table ) {
1818

1919
public function get_column_value( $column, $id ) {
2020
ob_start();
21-
$this->table->column_default( get_post( $id ), $column );
21+
22+
$method = 'column_' . $column;
23+
24+
if ( method_exists( $this->table, $method ) ) {
25+
call_user_func( [ $this->table, $method ], get_post( $id ) );
26+
} else {
27+
$this->table->column_default( get_post( $id ), $column );
28+
}
2229

2330
return ob_get_clean();
2431
}

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.1.3
4+
Version: 4.1.4
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
@@ -36,7 +36,7 @@
3636
}
3737

3838
define( 'AC_FILE', __FILE__ );
39-
define( 'AC_VERSION', '4.1.3' );
39+
define( 'AC_VERSION', '4.1.4' );
4040

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

1.46 KB
Binary file not shown.

languages/codepress-admin-columns-tr_TR.po

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package.
33
msgid ""
44
msgstr ""
5-
"PO-Revision-Date: 2019-04-27 12:12:13+0000\n"
5+
"PO-Revision-Date: 2020-04-15 09:06:03+0000\n"
66
"MIME-Version: 1.0\n"
77
"Content-Type: text/plain; charset=UTF-8\n"
88
"Content-Transfer-Encoding: 8bit\n"
@@ -13,91 +13,91 @@ msgstr ""
1313

1414
#: templates/admin/modal-pro.php:25
1515
msgid "Bulk edit any content, including custom fields."
16-
msgstr ""
16+
msgstr "Özel alanlar da dahil olmak üzere tüm içeriği toplu olarak düzenleyin."
1717

1818
#: templates/admin/loading-message.php:11
1919
msgid "Loading Columns"
20-
msgstr ""
20+
msgstr "Sütunlar yükleniyor"
2121

2222
#: templates/admin/edit-submenu.php:10
2323
msgid "Column Sets"
24-
msgstr ""
24+
msgstr "Sütun kümeleri"
2525

2626
#: classes/PluginActionLinks.php:46
2727
msgid "Go Pro"
28-
msgstr ""
28+
msgstr "Pro edinin"
2929

3030
#: classes/Plugin/Update/V4000.php:547
3131
msgid "Original"
32-
msgstr ""
32+
msgstr "Orijinal"
3333

3434
#: classes/Column/Post/EstimatedReadingTime.php:15
3535
msgid "Read Time"
36-
msgstr ""
36+
msgstr "Okuma süresi"
3737

3838
#: classes/Column/Post/PasswordProtected.php:11
3939
msgid "Password Protected"
40-
msgstr ""
40+
msgstr "Parola korumalı"
4141

4242
#: classes/Settings/Column/NumberFormat.php:100
4343
msgid "Number Format"
44-
msgstr ""
44+
msgstr "Sayı biçimi"
4545

4646
#: classes/Settings/Column/NumberFormat.php:89
4747
msgid "Formatted"
48-
msgstr ""
48+
msgstr "Biçimlendirilmiş"
4949

5050
#: classes/Settings/Column/NumberFormat.php:69
5151
msgid "Thousands separator"
52-
msgstr ""
52+
msgstr "Binler basamağı ayırıcı"
5353

5454
#: classes/Settings/Column/NumberFormat.php:58
5555
msgid "Decimal point"
56-
msgstr ""
56+
msgstr "Ondalık ayracı"
5757

5858
#: classes/Settings/Column/NumberFormat.php:47
5959
msgid "Decimals"
60-
msgstr ""
60+
msgstr "Ondalık sayılar"
6161

6262
#: classes/Settings/Column/TermLink.php:38
6363
msgid "Edit Term"
64-
msgstr ""
64+
msgstr "Terimi düzenle"
6565

6666
#: classes/Settings/Column/TermLink.php:37
6767
msgid "Filter by Term"
68-
msgstr ""
68+
msgstr "Terime göre süz"
6969

7070
#: classes/Admin/Promo/BlackFriday.php:13
7171
msgid "30% Off from Black Friday until Cyber Monday"
72-
msgstr ""
72+
msgstr "Kara Cuma'dan Siber Pazartesi'ye kadar %30 indirimli"
7373

7474
#: classes/Check/Promotion.php:73
7575
msgid "Get %s now"
76-
msgstr ""
76+
msgstr "Şimdi %s edinin"
7777

7878
#: classes/Helper/Html.php:407
7979
msgid "%s more"
80-
msgstr ""
80+
msgstr "%s fazla"
8181

8282
#: classes/Settings/Column/CommentLink.php:62
8383
msgid "View Comment"
84-
msgstr ""
84+
msgstr "Yorumu görüntüle"
8585

8686
#: classes/Admin/Page/Columns.php:89
8787
msgid "The column could not be loaded because of an unknown error"
88-
msgstr ""
88+
msgstr "Sütun bilinmeyen bir hata nedeniyle yüklenemedi"
8989

9090
#: classes/Admin/Page/Columns.php:88
9191
msgid "There was an error during saving the column settings."
92-
msgstr ""
92+
msgstr "Sütun ayarlarını kaydederken bir hata oluştu."
9393

9494
#: classes/Table/Screen.php:64
9595
msgid "The available columns are loaded. You can now return to %s."
96-
msgstr ""
96+
msgstr "Kullanılabilir sütunlar yüklendi. Artık %s konumuna dönebilirsiniz."
9797

9898
#: classes/Table/Screen.php:63
9999
msgid "the settings page"
100-
msgstr ""
100+
msgstr "ayarlar sayfası"
101101

102102
#: classes/Integration/ACF.php:15
103103
msgid "Display and edit ACF fields in the posts overview in seconds!"
@@ -1572,7 +1572,7 @@ msgstr "Dosya ekleri"
15721572

15731573
#: classes/Settings/Column/NumberFormat.php:78
15741574
msgid "Preview"
1575-
msgstr ""
1575+
msgstr "Önizleme"
15761576

15771577
#: classes/Column/Media/Width.php:16 classes/Settings/Column/Image.php:41
15781578
#: classes/Settings/Column/Width.php:53
@@ -1803,7 +1803,7 @@ msgstr "Düzenle"
18031803

18041804
#: classes/Settings/Column/CommentLink.php:63
18051805
msgid "Edit Comment"
1806-
msgstr ""
1806+
msgstr "Yorumu Düzenle"
18071807

18081808
#: classes/Column/Post/ID.php:15 classes/Column/Media/ID.php:14
18091809
#: classes/Column/Comment/ID.php:14 classes/Settings/Column/Term.php:30

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields,
55
Requires at least: 4.7
66
Tested up to: 5.4
77
Requires PHP: 5.6.20
8-
Stable tag: 4.1.3
8+
Stable tag: 4.1.4
99

1010
Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
1111

@@ -213,6 +213,11 @@ You can find a list of the available actions and filters (and examples on how to
213213

214214
== Changelog ==
215215

216+
= 4.1.4 =
217+
Release Date: April 15th, 2020
218+
219+
* [Added] Javascript Improvements
220+
216221
= 4.1.3 =
217222
Release Date: April 10th, 2020
218223

src/js/modules/modal.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,10 @@ class Modal {
5959
} );
6060
}
6161

62-
this.el.addEventListener( 'click', () => {
63-
self.close();
64-
} );
65-
66-
this.el.querySelector( '.ac-modal__dialog' ).addEventListener( 'click', ( e ) => {
67-
e.stopPropagation();
62+
document.addEventListener( 'click', ( e ) => {
63+
if ( !e.target.closest( '.ac-modal__dialog' ) ) {
64+
self.close();
65+
}
6866
} );
6967

7068
if ( typeof document.querySelector( 'body' ).dataset.ac_modal_init === 'undefined' ) {
@@ -85,9 +83,12 @@ class Modal {
8583
}
8684

8785
open() {
88-
this.onOpen();
89-
this.el.removeAttribute( 'style' );
90-
this.el.classList.add( '-active' );
86+
//short delay in order to allow bubbling events to bind before opening
87+
setTimeout( () => {
88+
this.onOpen();
89+
this.el.removeAttribute( 'style' );
90+
this.el.classList.add( '-active' );
91+
} );
9192
}
9293

9394
destroy() {

0 commit comments

Comments
 (0)