Soundy Background Music - Version 2.2

Version Description

   -    May 4th, 2014 = * Fixed bug introduced in 2.0: in the admin plugins page, all plugins had a Settings link pointing to Soundy's settings because of a bug in soundy.php. Sorry for the inconvenience.

Download this release

Release Info

Developer bducouedic
Plugin Icon 128x128 Soundy Background Music
Version 2.2
Comparing to
See all releases

Code changes from version 2.1 to 2.2

Files changed (2) hide show
  1. readme.txt +5 -2
  2. soundy.php +10 -10
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: bducouedic
3
  Tags: audio, sound, music, background, soundtrack, background sound, background audio, background music, posts, pages
4
  Requires at least: 3.6
5
  Tested up to: 3.9
6
- Stable tag: 2.1
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: http://www.webartisan.ch/en/products/soundy-free/#wa_donate
@@ -158,8 +158,11 @@ Using WordPress Default jQuery library is actually what Soundy does and this is
158
 
159
  = Changelog =
160
 
 
 
 
161
  = 2.1    -    April 26th, 2014 =
162
- * Corrected major bug introduced in 2.0: when Soundy was installed for the first time: the default audio file URL and the default four play/pause button image URLs were undefined. Sorry for the inconvenience.
163
 
164
  = 2.0    -    April 23rd, 2014 =
165
  * Object Oriented Redesign of the whole plugin.
3
  Tags: audio, sound, music, background, soundtrack, background sound, background audio, background music, posts, pages
4
  Requires at least: 3.6
5
  Tested up to: 3.9
6
+ Stable tag: 2.2
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: http://www.webartisan.ch/en/products/soundy-free/#wa_donate
158
 
159
  = Changelog =
160
 
161
+ = 2.2    -    May 4th, 2014 =
162
+ * Fixed bug introduced in 2.0: in the admin plugins page, all plugins had a Settings link pointing to Soundy's settings because of a bug in soundy.php. Sorry for the inconvenience.
163
+
164
  = 2.1    -    April 26th, 2014 =
165
+ * Corrected major bug introduced in 2.0: when Soundy was installed for the first time: the default audio file URL and the default four play/pause button image URLs were undefined.
166
 
167
  = 2.0    -    April 23rd, 2014 =
168
  * Object Oriented Redesign of the whole plugin.
soundy.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * @package Soundy_Background_Music
4
- * @version 2.1
5
  */
6
  /*
7
  Plugin Name: Soundy Background Music
8
  Plugin URI: http://webartisan.ch/en/products/soundy-free/
9
  Description: This plugin allows administrators and authors to set a background sound on any post or page.
10
- Version: 2.1
11
  Author: Bertrand du Couédic
12
  Author URI: http://webartisan.ch/en/about
13
  License: GPL2
@@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
 
31
  class WarSoundy
32
  {
33
- private $soundy_version = '2.1';
34
  private $soundy_type = 'free';
35
  private $soundy_subtype = '';
36
  private $soundy_free_home_wp_url = 'http://wordpress.org/plugins/soundy-background-music/';
@@ -95,7 +95,7 @@ class WarSoundy
95
  add_action( 'admin_menu', array( $this, 'add_plugin_settings_menu' ) );
96
  add_action( 'admin_init', array( $this, 'register_settings' ) );
97
 
98
- add_filter( 'plugin_action_links', array( $this, 'add_settings_link_to_plugins_page_soundy_entry' ) );
99
  if( $this->soundy_type == 'free' || $this->soundy_subtype == 'trial' )
100
  {
101
  add_filter( 'plugin_row_meta', array( $this, 'add_pro_buy_link_to_plugins_page_soundy_entry' ), 10, 2 );
@@ -959,8 +959,8 @@ class WarSoundy
959
  '(fixed positioning: button will NOT scroll with page content)';
960
 
961
  $positions = array(
962
- document => 'Document',
963
- window => 'Window'
964
  );
965
  $options_position = '';
966
  foreach( $positions as $position_id => $position_desc )
@@ -970,10 +970,10 @@ class WarSoundy
970
  }
971
 
972
  $corners = array(
973
- upper_right => 'Upper Right Corner',
974
- bottom_right => 'Bottom Right Corner',
975
- upper_left => 'Upper Left Corner',
976
- bottom_left => 'Bottom Left Corner'
977
  );
978
  $options_corner = '';
979
  foreach( $corners as $corner_id => $corner_desc )
1
  <?php
2
  /**
3
  * @package Soundy_Background_Music
4
+ * @version 2.2
5
  */
6
  /*
7
  Plugin Name: Soundy Background Music
8
  Plugin URI: http://webartisan.ch/en/products/soundy-free/
9
  Description: This plugin allows administrators and authors to set a background sound on any post or page.
10
+ Version: 2.2
11
  Author: Bertrand du Couédic
12
  Author URI: http://webartisan.ch/en/about
13
  License: GPL2
30
 
31
  class WarSoundy
32
  {
33
+ private $soundy_version = '2.2';
34
  private $soundy_type = 'free';
35
  private $soundy_subtype = '';
36
  private $soundy_free_home_wp_url = 'http://wordpress.org/plugins/soundy-background-music/';
95
  add_action( 'admin_menu', array( $this, 'add_plugin_settings_menu' ) );
96
  add_action( 'admin_init', array( $this, 'register_settings' ) );
97
 
98
+ add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings_link_to_plugins_page_soundy_entry' ) );
99
  if( $this->soundy_type == 'free' || $this->soundy_subtype == 'trial' )
100
  {
101
  add_filter( 'plugin_row_meta', array( $this, 'add_pro_buy_link_to_plugins_page_soundy_entry' ), 10, 2 );
959
  '(fixed positioning: button will NOT scroll with page content)';
960
 
961
  $positions = array(
962
+ 'document' => 'Document',
963
+ 'window' => 'Window'
964
  );
965
  $options_position = '';
966
  foreach( $positions as $position_id => $position_desc )
970
  }
971
 
972
  $corners = array(
973
+ 'upper_right' => 'Upper Right Corner',
974
+ 'bottom_right' => 'Bottom Right Corner',
975
+ 'upper_left' => 'Upper Left Corner',
976
+ 'bottom_left' => 'Bottom Left Corner'
977
  );
978
  $options_corner = '';
979
  foreach( $corners as $corner_id => $corner_desc )