Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QTS: fixed callback ref/declarations/flush rewrite pos. missed in #1134 #1141

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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