Version Description
- January 14th, 2017 = * Fixed error messages sent to error log when posts or pages were added.
Download this release
Release Info
Developer | bducouedic |
Plugin | Soundy Background Music |
Version | 3.9 |
Comparing to | |
See all releases |
Code changes from version 3.8 to 3.9
- readme.txt +5 -2
- soundy.php +7 -4
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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: 4.
|
6 |
-
Stable tag: 3.
|
7 |
License: GPL2
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_donate
|
@@ -168,6 +168,9 @@ This happens when the PHP parser version is too old. Soundy needs PHP 5.3 or hig
|
|
168 |
|
169 |
= Changelog =
|
170 |
|
|
|
|
|
|
|
171 |
= 3.8 - November 11th, 2016 =
|
172 |
* Made plugin compatible with SSL.
|
173 |
|
2 |
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: 4.9
|
6 |
+
Stable tag: 3.9
|
7 |
License: GPL2
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_donate
|
168 |
|
169 |
= Changelog =
|
170 |
|
171 |
+
= 3.9 - January 14th, 2017 =
|
172 |
+
* Fixed error messages sent to error log when posts or pages were added.
|
173 |
+
|
174 |
= 3.8 - November 11th, 2016 =
|
175 |
* Made plugin compatible with SSL.
|
176 |
|
soundy.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Soundy_Background_Music
|
4 |
-
* @version 3.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Soundy Background Music
|
8 |
Plugin URI: https://www.webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/
|
9 |
Description: This plugin allows administrators and authors to set a background sound on any post or page.
|
10 |
-
Version: 3.
|
11 |
Author: Bertrand du Couédic
|
12 |
Author URI: https://webartisan.ch/en/about
|
13 |
License: GPL2
|
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
31 |
class WarSoundy
|
32 |
{
|
33 |
public $soundy_type = 'free';
|
34 |
-
public $soundy_version = '3.
|
35 |
public $soundy_free_wp_home_url = 'https://wordpress.org/plugins/soundy-background-music/';
|
36 |
public $sdy_pl_free_wp_home_url = 'https://wordpress.org/plugins/soundy-audio-playlist/';
|
37 |
public $soundy_pro_home_url = 'https://webartisan.ch/products/soundy-background-music/pro-wordpress-plugin/';
|
@@ -1436,7 +1436,10 @@ class WarSoundy
|
|
1436 |
{
|
1437 |
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
|
1438 |
return $post_id;
|
1439 |
-
|
|
|
|
|
|
|
1440 |
if ( 'page' == $_POST[ 'post_type' ] )
|
1441 |
{
|
1442 |
if ( ! current_user_can( 'edit_page', $post_id ) )
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Soundy_Background_Music
|
4 |
+
* @version 3.9
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Soundy Background Music
|
8 |
Plugin URI: https://www.webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/
|
9 |
Description: This plugin allows administrators and authors to set a background sound on any post or page.
|
10 |
+
Version: 3.9
|
11 |
Author: Bertrand du Couédic
|
12 |
Author URI: https://webartisan.ch/en/about
|
13 |
License: GPL2
|
31 |
class WarSoundy
|
32 |
{
|
33 |
public $soundy_type = 'free';
|
34 |
+
public $soundy_version = '3.9';
|
35 |
public $soundy_free_wp_home_url = 'https://wordpress.org/plugins/soundy-background-music/';
|
36 |
public $sdy_pl_free_wp_home_url = 'https://wordpress.org/plugins/soundy-audio-playlist/';
|
37 |
public $soundy_pro_home_url = 'https://webartisan.ch/products/soundy-background-music/pro-wordpress-plugin/';
|
1436 |
{
|
1437 |
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
|
1438 |
return $post_id;
|
1439 |
+
|
1440 |
+
if( ! isset( $_POST[ 'post_type' ] ) )
|
1441 |
+
return $post_id;
|
1442 |
+
|
1443 |
if ( 'page' == $_POST[ 'post_type' ] )
|
1444 |
{
|
1445 |
if ( ! current_user_can( 'edit_page', $post_id ) )
|