Skip to content

Commit

Permalink
QTS: fixed callback ref/declarations/flush rewrite pos. missed in #1134
Browse files Browse the repository at this point in the history
… (#1141)
  • Loading branch information
spleen1981 committed Mar 28, 2022
1 parent a1974c0 commit 32c021b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion modules/slugs/includes/class-qtranslate-slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ public function get_current_url( $lang = false ) {
* @return string Home url link with optional path appended.
*/
public function home_url( $url, $path, $scheme, $blog_id ) {
global $q_config;
if ( ! in_array( $scheme, array( 'http', 'https' ) ) ) {
$scheme = is_ssl() && ! is_admin() ? 'https' : 'http';
}
Expand Down
6 changes: 2 additions & 4 deletions modules/slugs/includes/qtranslate-slug-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ function qts_deactivate() {
*/
function qts_add_slug_meta_box() {
remove_meta_box( 'slugdiv', null, 'normal' );
add_meta_box( 'qts_sectionid', __( 'Slugs per language', 'qtranslate' ), array(
&$this,
'qts_draw_meta_box'
), null, 'side', 'high' );
add_meta_box( 'qts_sectionid', __( 'Slugs per language', 'qtranslate' ), 'qts_draw_meta_box', null, 'side', 'high' );
}

/**
Expand Down Expand Up @@ -487,6 +484,7 @@ function qts_taxonomy_custom_column( $str, $column_name, $term_id ) {
function qts_get_object_terms( $terms, $obj_id, $taxonomy, $args ) {

global $pagenow;
global $q_config;

// Although in post edit page the tags are translated,
// but when saving/updating the post Wordpress considers
Expand Down
2 changes: 1 addition & 1 deletion modules/slugs/includes/qtranslate-slug-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ function qts_update_settings() {
return;
}
update_option( QTS_OPTIONS_NAME, $qts_settings );
flush_rewrite_rules();
$qtranslate_slug->options_buffer = $qts_settings;
flush_rewrite_rules();
}

/**
Expand Down

0 comments on commit 32c021b

Please sign in to comment.