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: removed nav functions and cleanup #1118

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

spleen1981
Copy link
Contributor

No description provided.

Copy link
Collaborator

@herrvigg herrvigg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great cleanup!

*/
public function qts_quickuse( $text, $lang = '' ) {
$lang = '' == $lang ? $this->current_lang : $lang;
$parsed_text = qtranxf_getSortedLanguages( $text ); // TODO: this call looks very wrong!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call was wrong, good riddance!

remove_action( 'wp_head', 'qtranxf_header' );
remove_action( 'wp_head', 'qtranxf_wp_head' );
remove_action( 'wp_head', 'qtranxf_header' ); //TODO: check if it is needed, and why it is not in the main plugin in case
remove_action( 'wp_head', 'qtranxf_wp_head' ); //TODO: check if it is needed, and why it is not in the main plugin in case
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed it looks very radical to remove those actions. There could be many side effects. It should rather be handled in those callbacks.

@herrvigg herrvigg merged commit 8f482fa into qtranslate:master Mar 7, 2022
@spleen1981 spleen1981 deleted the remove_nav_functions branch March 8, 2022 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants