Skip to content

Commit

Permalink
Fix media selector title
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgimenez committed Mar 21, 2017
1 parent d0c85d5 commit a23a689
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 1 addition & 4 deletions assets/js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ jQuery(function($){

// Create the media frame.
uploadFrame = wp.media.frames.downloadable_file = wp.media({
title: odinAdminParams.uploadTitle,
button: {
text: odinAdminParams.uploadButton
},
title: brasa_slider_admin_params.media_element_title,
multiple: false,
library: {
type: 'image'
Expand Down
7 changes: 6 additions & 1 deletion brasa-slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin Name: Brasa Slider
* Plugin URI: http://brasa.art.br
* Description: Brasa Slider
* Version: 2.0.1
* Version: 2.0.2
* Author: Matheus Gimenez
* Plugin URI: http://brasa.art.br
* Text Domain: brasa-slider
Expand Down Expand Up @@ -234,6 +234,11 @@ public function admin_scripts() {
BRASA_SLIDER_URL . 'assets/js/all.js',
array('jquery')
);
$admin_params = array(
'media_element_title' => __( 'Select a image', 'brasa-slider' )
);
wp_localize_script( 'brasa_slider_all_js', 'brasa_slider_admin_params', $admin_params );

}

// add metabox
Expand Down
4 changes: 3 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: MatheusGimenez, brasadesign, everaldomatias, willowmagrini
Donate link: http://brasa.art.br
Tags: slider, brasa, post slider, rest api, support rest api, transient api
Requires at least: 4.5
Tested up to: 4.7
Tested up to: 4.7.3
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -18,6 +18,8 @@ After installing the plugin go to your dashboard and create a new slider. You ha
2. Activate the plugin through the 'Plugins' screen in WordPress

== Changelog ==
= 2.0.2 =
Fix media selector title
= 2.0.1 =
Fix shortcode name
= 2.0 =
Expand Down

0 comments on commit a23a689

Please sign in to comment.