Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 3bc9024

Browse files
committed
add lang indicator for editing post
1 parent ff7a907 commit 3bc9024

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/admin/class-wpm-admin-posts.php

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222
class WPM_Admin_Posts {
2323

24+
2425
/**
2526
* Constructor.
2627
*/
@@ -59,6 +60,7 @@ public function init() {
5960

6061
}
6162

63+
6264
/**
6365
* Fix for translate post in edit post page
6466
* use get_post
@@ -68,6 +70,7 @@ public function translate_post() {
6870
$post = wpm_translate_object( $post );
6971
}
7072

73+
7174
/**
7275
* Define language columns for post_types.
7376
*
@@ -83,6 +86,7 @@ public function language_columns( $columns ) {
8386
return wpm_array_insert_after( $columns, 'title', array( 'languages' => __( 'Languages', 'wpm' ) ) );
8487
}
8588

89+
8690
/**
8791
* Output language columns for post types.
8892
*
@@ -111,6 +115,7 @@ public function render_language_column( $column ) {
111115
}
112116
}
113117

118+
114119
/**
115120
* Translate preview url for posts
116121
*
@@ -129,6 +134,9 @@ public function translate_post_link( $link ) {
129134
}
130135

131136

137+
/**
138+
* Add indicator for editing post
139+
*/
132140
public function add_lang_indicator() {
133141
$options = wpm_get_options();
134142
$languages = wpm_get_all_languages();

0 commit comments

Comments
 (0)