Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fixed XSS and added hability to filter the metabox position
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/qtranslate-slug/trunk@1213627 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
pedroghandi committed Aug 5, 2015
1 parent 4751e91 commit 74b3932
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
11 changes: 7 additions & 4 deletions includes/class-qtranslate-slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ function filter_request( $query ) {
foreach( $this->get_enabled_languages() as $lang ) {

$this->lang = $lang;
$this->current_url[$lang] = apply_filters('qts_url_args', call_user_func($function, $id));
$this->current_url[$lang] = esc_url(apply_filters('qts_url_args', call_user_func($function, $id)));
}

$this->lang = false;
Expand Down Expand Up @@ -1925,11 +1925,14 @@ public function add_slug_meta_box() {

if ( function_exists( 'add_meta_box' ) ) {

add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'post', 'side', 'high');
add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'page', 'side', 'high' );
$context = apply_filters("qts_admin_meta_box_context","side");
$priority = apply_filters("qts_admin_meta_box_priority","high");

add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'post', $context, $priority);
add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'page', $context, $priority);

foreach ( get_post_types( array('_builtin' => false ) ) as $ptype )
add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), $ptype, 'side', 'high' );
add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), $ptype, $context, $priority );
}
}

Expand Down
14 changes: 9 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,28 @@ Contributors: carlos_a_sanz, pedroghandi
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SYC46KSLRC4Q8
Tags: qtranslate, slug, multilanguage, widget
Requires at least: 3.3
Tested up to: 4.1.1
Stable tag: 1.1.16
Tested up to: 4.2.4
Stable tag: 1.1.17
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Adds support for permalink translations and fix some QTranslate deficiencies since wordpress 3.0
Adds support for permalink translations to QTranslate-X since wordpress 3.0

== Description ==

[Qtranslate](http://wordpress.org/plugins/qtranslate/) is a nice plugin but unfortunately today is **outdated**. **Qtranslate Slug** is an addon to QTranslate, which adds support for permalinks translations and fix some QTranslate deficiencies since wordpress 3.0. Check out all the new forks from qtranslate!
[Qtranslate-X](http://wordpress.org/plugins/qtranslate-x/) is a nice plugin for Multilingual Websites. **Qtranslate Slug** is an addon to QTranslate, which adds support for permalinks translations.

**Version 1.0** has been written from scratch using OOP. The code has been structured better, the functions have been marked and commented and everything is better integrated with Wordpress API.
1.1.17 fixes a dangerous Security Exploit. Please update right now!

= Requirements: =

* Wordpress 3.3 (PHP 5.4 and MySQL 5)
* mQtranslate 2.6.2.4 or Qtranslate 2.5.8 or qtranslate-x ( 2.9.1 )

= New in 1.1.17 =
* Hability to filter the position of the Metabox
* Fixed dangerous security exploit!

= New in 1.1.16 =
Minor fix for the language menu using qtranslate's function

Expand Down
4 changes: 3 additions & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

= New in 1.1.17 =
* Fixed dangerous security exploit!
* Hability to filter the position of the Metabox

= New in 1.1.16 =
Minor fix for the language menu using qtranslate's function
Expand Down

0 comments on commit 74b3932

Please sign in to comment.