Skip to content

Commit 6796677

Browse files
authored
Merge pull request #424 from codepress/release/4.7.18
Release 4.7.18
2 parents 1ae9657 + 336307e commit 6796677

12 files changed

+143
-114
lines changed

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

classes/Admin/Page/Columns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function render(): string
296296
'show_actions' => ! $this->list_screen->is_read_only(),
297297
'show_clear_all' => apply_filters('ac/enable_clear_columns_button', false),
298298
]);
299-
299+
300300
do_action('ac/settings/before_columns', $this->list_screen);
301301

302302
echo $columns->set_template('admin/edit-columns');

classes/Column/Post/PostParent.php

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,36 @@
77
/**
88
* @since 2.0
99
*/
10-
class PostParent extends Column {
11-
12-
public function __construct() {
13-
$this->set_type( 'column-parent' );
14-
$this->set_label( __( 'Parent', 'codepress-admin-columns' ) );
15-
}
16-
17-
public function get_value( $post_id ) {
18-
$parent_id = $this->get_raw_value( $post_id );
19-
20-
if ( ! $parent_id ) {
21-
return $this->get_empty_char();
22-
}
23-
24-
return ac_helper()->html->link( get_edit_post_link( $parent_id ), ac_helper()->post->get_raw_field( 'post_title', $parent_id ) );
25-
}
26-
27-
public function get_raw_value( $post_id ) {
28-
$parent_id = ac_helper()->post->get_raw_field( 'post_parent', $post_id );
29-
30-
return $parent_id && is_numeric( $parent_id )
31-
? (int) $parent_id
32-
: false;
33-
}
34-
35-
public function is_valid() {
36-
return is_post_type_hierarchical( $this->get_post_type() );
37-
}
10+
class PostParent extends Column
11+
{
12+
13+
public function __construct()
14+
{
15+
$this->set_type('column-parent');
16+
$this->set_label(__('Parent', 'codepress-admin-columns'));
17+
}
18+
19+
public function get_value($post_id)
20+
{
21+
$parent_id = $this->get_raw_value($post_id);
22+
23+
if ( ! $parent_id) {
24+
return $this->get_empty_char();
25+
}
26+
27+
return ac_helper()->html->link(
28+
get_edit_post_link($parent_id),
29+
ac_helper()->post->get_raw_field('post_title', $parent_id)
30+
);
31+
}
32+
33+
public function get_raw_value($post_id)
34+
{
35+
$parent_id = ac_helper()->post->get_raw_field('post_parent', $post_id);
36+
37+
return $parent_id && is_numeric($parent_id)
38+
? (int)$parent_id
39+
: false;
40+
}
3841

3942
}

classes/ListScreen.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,11 @@ public function get_columns(): array
246246
private function set_columns(): void
247247
{
248248
foreach ($this->get_settings() as $name => $data) {
249-
$data['name'] = $name;
249+
// for backwards compatibility with the upcoming 7.0 release
250+
if (empty($data['name'])) {
251+
$data['name'] = $name;
252+
}
253+
250254
$column = $this->create_column($data);
251255

252256
if ($column) {

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.17
4+
Version: 4.7.18
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.17');
40+
define('AC_VERSION', '4.7.18');
4141

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

getlangs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,23 @@ then
3939
done
4040
fi
4141

42+
echo "Starting download of language files..."
43+
4244
for index in "${languages[@]}" ; do
4345
KEY="${index%%::*}"
4446
LOCALE="${index##*::}"
4547

4648
#url="https://translate.wordpress.org/projects/wp-plugins/codepress-admin-columns/stable/${KEY}/default/export-translations/"
4749
url="https://translate.wordpress.org/projects/wp-plugins/codepress-admin-columns/stable/${KEY}/default/export-translations/?format="
4850

51+
echo "Downloading language ${LOCALE}"
52+
4953
for ext in "${exts[@]}"; do
5054
curl $url$ext --silent --output codepress-admin-columns-$LOCALE.$ext &
5155
done
5256

57+
sleep 1
58+
5359
done
5460

5561
wait
-37 Bytes
Binary file not shown.

languages/codepress-admin-columns-nl_NL.po

Lines changed: 13 additions & 13 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: 2025-07-12 17:26:18+0000\n"
5+
"PO-Revision-Date: 2025-09-02 07:43:54+0000\n"
66
"MIME-Version: 1.0\n"
77
"Content-Type: text/plain; charset=UTF-8\n"
88
"Content-Transfer-Encoding: 8bit\n"
@@ -371,7 +371,7 @@ msgstr "Lijsttabel aanpassen"
371371

372372
#: templates/admin/page/settings-section-pro-cta.php:118
373373
msgid "And of course, all network sites can use Admin Columns."
374-
msgstr "En natuurlijk kunnen alle netwerksites Admin Columns gebruiken."
374+
msgstr "En natuurlijk kunnen alle netwerk sites Admin Columns gebruiken."
375375

376376
#: templates/admin/page/settings-section-pro-cta.php:117
377377
msgid "Get insights about your entire network of sites."
@@ -637,7 +637,7 @@ msgstr "Producten"
637637

638638
#: templates/settings/setting-label-icons.php:288
639639
msgid "Buddicons"
640-
msgstr "Buddpictogrammen"
640+
msgstr "Buddicons"
641641

642642
#: templates/settings/setting-label-icons.php:271
643643
msgid "WordPress.org"
@@ -685,7 +685,7 @@ msgstr "Sleutel"
685685

686686
#: templates/admin/side-banner.php:52
687687
msgid "Export table contents to CSV"
688-
msgstr "Exporteer tabelinhouden naar CSV"
688+
msgstr "Exporteer tabel inhoud naar CSV"
689689

690690
#: templates/tooltip/bulk-editing.php:37 templates/tooltip/custom-field.php:22
691691
#: templates/tooltip/export-disabled.php:17 templates/tooltip/export.php:32
@@ -838,15 +838,15 @@ msgstr "Klik op de exportknop en alle items worden geëxporteerd naar CSV."
838838

839839
#: templates/tooltip/export.php:10
840840
msgid "Export for Admin Columns Pro, allows you to export the contents of your columns to CSV."
841-
msgstr "Exporteren voor Admin Columns Pro, hiermee kan je de inhoud van je kolommen exporteren naar CSV."
841+
msgstr "Export for Admin Columns Pro, hiermee kan je de inhoud van je kolommen exporteren naar CSV."
842842

843843
#: templates/tooltip/inline-editing.php:34
844844
msgid "It is possible to undo and redo all changes made with Inline Editing, so using it is without risk."
845845
msgstr "Het is mogelijk om alle wijzigingen die zijn aangebracht met inline bewerken ongedaan te maken en opnieuw uit te voeren, dus het gebruik ervan is zonder risico."
846846

847847
#: templates/tooltip/inline-editing.php:28
848848
msgid "Click on the pencil icon to start editing the value of a field."
849-
msgstr "Klik op het potlood pictogram om de waarde van een veld te bewerken."
849+
msgstr "Klik op het potlood icoon om de waarde van een veld te bewerken."
850850

851851
#: templates/tooltip/custom-field.php:10
852852
#: templates/tooltip/inline-editing.php:19
@@ -1106,15 +1106,15 @@ msgstr "Selecteer een type"
11061106

11071107
#: classes/Settings/Column/Time.php:19
11081108
msgid "WordPress Time Format"
1109-
msgstr "WordPress tijd format"
1109+
msgstr "WordPress tijdnotatie"
11101110

11111111
#: classes/Settings/Column/Time.php:13
11121112
msgid "This will determine how the time will be displayed."
11131113
msgstr "Dit bepaalt hoe de tijd getoond wordt."
11141114

11151115
#: classes/Settings/Column/Time.php:12
11161116
msgid "Time Format"
1117-
msgstr "Tijd format"
1117+
msgstr "Tijdnotatie"
11181118

11191119
#: classes/Settings/Column/StringLimit.php:35
11201120
msgid "No limit"
@@ -1156,7 +1156,7 @@ msgstr "Bewerk %s"
11561156

11571157
#: classes/Settings/Column/PostFormatIcon.php:30
11581158
msgid "Use an icon instead of text for displaying."
1159-
msgstr "Toon een pictogram in plaats van tekst."
1159+
msgstr "Toon een icoon in plaats van tekst."
11601160

11611161
#: classes/Settings/Column/Post.php:122
11621162
msgctxt "post"
@@ -1288,12 +1288,12 @@ msgstr "Privé"
12881288

12891289
#: classes/Settings/Column/StatusIcon.php:30
12901290
msgid "Use an icon instead of text for displaying the status."
1291-
msgstr "Toon een pictogram in plaats van een tekst voor de status te tonen."
1291+
msgstr "Toon een icoon in plaats van tekst voor het tonen van de status."
12921292

12931293
#: classes/Settings/Column/PostFormatIcon.php:29
12941294
#: classes/Settings/Column/StatusIcon.php:29
12951295
msgid "Use an icon?"
1296-
msgstr "Pictogram gebruiken?"
1296+
msgstr "Icoon gebruiken?"
12971297

12981298
#: classes/Helper/Strings.php:176
12991299
msgid "&hellip;"
@@ -2607,11 +2607,11 @@ msgstr "Ja"
26072607

26082608
#: classes/Settings/Column/ActionIcons.php:28
26092609
msgid "Use icons instead of text for displaying the actions."
2610-
msgstr "Gebruik pictogrammen in plaats van tekst om acties te tonen."
2610+
msgstr "Gebruik iconen in plaats van tekst om acties te tonen."
26112611

26122612
#: classes/Settings/Column/ActionIcons.php:27
26132613
msgid "Use icons?"
2614-
msgstr "Gebruik pictogrammen?"
2614+
msgstr "Iconen gebruiken?"
26152615

26162616
#: classes/Column/Actions.php:19
26172617
msgid "Actions"
0 Bytes
Binary file not shown.

languages/codepress-admin-columns.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Content-Transfer-Encoding: 8bit\n"
99
"Language-Team: Admin Columns <[email protected]>\n"
1010
"Last-Translator: Codepress <[email protected]\n"
11-
"POT-Creation-Date: 2025-08-27 08:49+0000\n"
11+
"POT-Creation-Date: 2025-09-22 08:09+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"
@@ -1276,7 +1276,7 @@ msgstr ""
12761276
msgid "Ping Status"
12771277
msgstr ""
12781278

1279-
#: classes/Column/Post/PostParent.php:14
1279+
#: classes/Column/Post/PostParent.php:16
12801280
msgid "Parent"
12811281
msgstr ""
12821282

0 commit comments

Comments
 (0)