Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/classes/db-versioning/v2-0-67.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
3
+
namespace Blocksy\DbVersioning;
4
+
5
+
class V2067 {
6
+
public function migrate() {
7
+
$prefixes = blocksy_manager()->screen->get_archive_prefixes();
8
+
9
+
foreach ($prefixes as $prefix) {
10
+
$content_horizontal_alignment = get_theme_mod(
11
+
$prefix . '_content_horizontal_alignment',
12
+
'__empty__'
13
+
);
14
+
15
+
if ($content_horizontal_alignment === '__empty__') {
16
+
continue;
17
+
}
18
+
19
+
if ($content_horizontal_alignment === 'left') {
20
+
$content_horizontal_alignment = 'start';
21
+
}
22
+
23
+
if ($content_horizontal_alignment === 'right') {
24
+
$content_horizontal_alignment = 'end';
25
+
}
26
+
27
+
set_theme_mod(
28
+
$prefix . '_content_horizontal_alignment',
29
+
$content_horizontal_alignment
30
+
);
31
+
}
32
+
}
33
+
}
34
+
35
+