Soundy Background Music - Version 3.5

Version Description

   -    August 8th, 2016 = * Corrected bug related to strpos PHP function. * Corrected bug that prevented Media Library buttons to work.

Download this release

Release Info

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

Code changes from version 3.4 to 3.5

.idea/.name DELETED
@@ -1 +0,0 @@
1
- 3.3
.idea/3.3.iml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIRquot; />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
9
-
.idea/deployment.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PublishConfigData" autoUpload="Always" traceLevel="DETAILS">
4
- <option name="myAutoUpload" value="ALWAYS" />
5
- </component>
6
- </project>
7
-
.idea/encodings.xml DELETED
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
- </project>
5
-
.idea/misc.xml DELETED
@@ -1,39 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectInspectionProfilesVisibleTreeState">
4
- <entry key="Project Default">
5
- <profile-state>
6
- <expanded-state>
7
- <State>
8
- <id />
9
- </State>
10
- <State>
11
- <id>Control flow issuesJavaScript</id>
12
- </State>
13
- <State>
14
- <id>JavaScript</id>
15
- </State>
16
- <State>
17
- <id>JavaScript function metricsJavaScript</id>
18
- </State>
19
- <State>
20
- <id>Naming conventionsJavaScript</id>
21
- </State>
22
- <State>
23
- <id>Potentially confusing code constructsJavaScript</id>
24
- </State>
25
- </expanded-state>
26
- <selected-state>
27
- <State>
28
- <id>CoffeeScript</id>
29
- </State>
30
- </selected-state>
31
- </profile-state>
32
- </entry>
33
- </component>
34
- <component name="ProjectRootManager" version="2" />
35
- <component name="SvnBranchConfigurationManager">
36
- <option name="mySupportsUserInfoFilter" value="true" />
37
- </component>
38
- </project>
39
-
.idea/modules.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR#x2F;.idea/3.3.iml" filepath="$PROJECT_DIR#x2F;.idea/3.3.iml" />
6
- </modules>
7
- </component>
8
- </project>
9
-
.idea/scopes/scope_settings.xml DELETED
@@ -1,5 +0,0 @@
1
- <component name="DependencyValidationManager">
2
- <state>
3
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
- </state>
5
- </component>
.idea/vcs.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIRquot; vcs="svn" />
5
- </component>
6
- </project>
7
-
.idea/workspace.xml DELETED
@@ -1,234 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" readonly="true" id="5bdbdc90-e429-41dd-874c-280889498679" name="Default" comment="" />
5
- <ignored path="3.3.iws" />
6
- <ignored path=".idea/workspace.xml" />
7
- <option name="TRACKING_ENABLED" value="true" />
8
- <option name="SHOW_DIALOG" value="false" />
9
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
- <option name="LAST_RESOLUTION" value="IGNORE" />
12
- </component>
13
- <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
14
- <component name="CreatePatchCommitExecutor">
15
- <option name="PATCH_PATH" value="" />
16
- </component>
17
- <component name="DaemonCodeAnalyzer">
18
- <disable_hints />
19
- </component>
20
- <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
21
- <component name="FavoritesManager">
22
- <favorites_list name="3.3" />
23
- </component>
24
- <component name="FileEditorManager">
25
- <leaf>
26
- <file leaf-file-name="soundy.php" pinned="false" current="true" current-in-tab="true">
27
- <entry file="file://$PROJECT_DIR#x2F;soundy.php">
28
- <provider selected="true" editor-type-id="text-editor">
29
- <state line="102" column="22" selection-start="4522" selection-end="4522" vertical-scroll-proportion="0.58780843" vertical-offset="1125" max-vertical-offset="25260">
30
- <folding>
31
- <element signature="e#6#65#0" expanded="true" />
32
- </folding>
33
- </state>
34
- </provider>
35
- </entry>
36
- </file>
37
- </leaf>
38
- </component>
39
- <component name="FindManager">
40
- <FindUsagesManager>
41
- <setting name="OPEN_NEW_TAB" value="false" />
42
- </FindUsagesManager>
43
- </component>
44
- <component name="IdeDocumentHistory">
45
- <option name="changedFiles">
46
- <list>
47
- <option value="$PROJECT_DIR#x2F;templates/front-end.php" />
48
- <option value="$PROJECT_DIR#x2F;soundy.php" />
49
- <option value="$PROJECT_DIR#x2F;readme.txt" />
50
- <option value="$PROJECT_DIR#x2F;../../trunk/readme.txt" />
51
- </list>
52
- </option>
53
- </component>
54
- <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
55
- <component name="ProjectFrameBounds">
56
- <option name="y" value="23" />
57
- <option name="width" value="1440" />
58
- <option name="height" value="831" />
59
- </component>
60
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
61
- <OptionsSetting value="true" id="Add" />
62
- <OptionsSetting value="true" id="Remove" />
63
- <OptionsSetting value="true" id="Checkout" />
64
- <OptionsSetting value="true" id="Update" />
65
- <OptionsSetting value="true" id="Status" />
66
- <OptionsSetting value="true" id="Edit" />
67
- <ConfirmationsSetting value="0" id="Add" />
68
- <ConfirmationsSetting value="0" id="Remove" />
69
- </component>
70
- <component name="ProjectReloadState">
71
- <option name="STATE" value="0" />
72
- </component>
73
- <component name="ProjectView">
74
- <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
75
- <flattenPackages />
76
- <showMembers />
77
- <showModules />
78
- <showLibraryContents />
79
- <hideEmptyPackages />
80
- <abbreviatePackageNames />
81
- <autoscrollToSource />
82
- <autoscrollFromSource />
83
- <sortByType />
84
- </navigator>
85
- <panes>
86
- <pane id="Scope" />
87
- <pane id="ProjectPane">
88
- <subPane>
89
- <PATH>
90
- <PATH_ELEMENT>
91
- <option name="myItemId" value="3.3" />
92
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
93
- </PATH_ELEMENT>
94
- </PATH>
95
- <PATH>
96
- <PATH_ELEMENT>
97
- <option name="myItemId" value="3.3" />
98
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
99
- </PATH_ELEMENT>
100
- <PATH_ELEMENT>
101
- <option name="myItemId" value="3.4" />
102
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
103
- </PATH_ELEMENT>
104
- </PATH>
105
- </subPane>
106
- </pane>
107
- </panes>
108
- </component>
109
- <component name="PropertiesComponent">
110
- <property name="options.lastSelected" value="File.Encoding" />
111
- <property name="options.splitter.main.proportions" value="0.3" />
112
- <property name="options.splitter.details.proportions" value="0.2" />
113
- <property name="options.searchVisible" value="true" />
114
- <property name="WebServerToolWindowFactoryState" value="true" />
115
- <property name="last_opened_file_path" value="$PROJECT_DIRquot; />
116
- </component>
117
- <component name="RunManager">
118
- <list size="0" />
119
- </component>
120
- <component name="ShelveChangesManager" show_recycled="false" />
121
- <component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="true" SSL_PROTOCOLS="sslv3">
122
- <option name="USER" value="" />
123
- <option name="PASSWORD" value="" />
124
- <option name="mySSHConnectionTimeout" value="30000" />
125
- <option name="mySSHReadTimeout" value="30000" />
126
- <option name="LAST_MERGED_REVISION" />
127
- <option name="MERGE_DRY_RUN" value="false" />
128
- <option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
129
- <option name="UPDATE_LOCK_ON_DEMAND" value="false" />
130
- <option name="IGNORE_SPACES_IN_MERGE" value="false" />
131
- <option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
132
- <option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
133
- <option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
134
- <option name="FORCE_UPDATE" value="false" />
135
- <option name="IGNORE_EXTERNALS" value="false" />
136
- <configuration useDefault="false">$USER_HOME#x2F;.subversion</configuration>
137
- <myIsUseDefaultProxy>false</myIsUseDefaultProxy>
138
- <supportedVersion>125</supportedVersion>
139
- </component>
140
- <component name="SvnFileUrlMappingImpl">
141
- <option name="myMappingRoots">
142
- <list>
143
- <SvnCopyRootSimple>
144
- <option name="myVcsRoot" value="$PROJECT_DIRquot; />
145
- <option name="myCopyRoot" value="$PROJECT_DIRquot; />
146
- </SvnCopyRootSimple>
147
- </list>
148
- </option>
149
- <option name="myMoreRealMappingRoots">
150
- <list>
151
- <SvnCopyRootSimple>
152
- <option name="myVcsRoot" value="$PROJECT_DIRquot; />
153
- <option name="myCopyRoot" value="$PROJECT_DIRquot; />
154
- </SvnCopyRootSimple>
155
- </list>
156
- </option>
157
- </component>
158
- <component name="TaskManager">
159
- <task active="true" id="Default" summary="Default task">
160
- <changelist id="5bdbdc90-e429-41dd-874c-280889498679" name="Default" comment="" />
161
- <created>1465541411126</created>
162
- <updated>1465541411126</updated>
163
- </task>
164
- <servers />
165
- </component>
166
- <component name="ToolWindowManager">
167
- <frame x="0" y="23" width="1440" height="831" extended-state="6" />
168
- <editor active="true" />
169
- <layout>
170
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
171
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
172
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
173
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
174
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
175
- <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
176
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24892704" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
177
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
178
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
179
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
180
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
181
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
182
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
183
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
184
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.44384304" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
185
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
186
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
187
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
188
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
189
- </layout>
190
- </component>
191
- <component name="Vcs.Log.UiProperties">
192
- <option name="RECENTLY_FILTERED_USER_GROUPS">
193
- <collection />
194
- </option>
195
- </component>
196
- <component name="VcsContentAnnotationSettings">
197
- <option name="myLimit" value="2678400000" />
198
- </component>
199
- <component name="VcsManagerConfiguration">
200
- <option name="myTodoPanelSettings">
201
- <TodoPanelSettings />
202
- </option>
203
- </component>
204
- <component name="XDebuggerManager">
205
- <breakpoint-manager />
206
- </component>
207
- <component name="editorHistoryManager">
208
- <entry file="file://$PROJECT_DIR#x2F;../../trunk/readme.txt">
209
- <provider selected="true" editor-type-id="text-editor">
210
- <state line="247" column="221" selection-start="19101" selection-end="19101" vertical-scroll-proportion="12.101828" vertical-offset="0" max-vertical-offset="4725" />
211
- </provider>
212
- </entry>
213
- <entry file="file://$PROJECT_DIR#x2F;templates/front-end.php">
214
- <provider selected="true" editor-type-id="text-editor">
215
- <state line="129" column="0" selection-start="5360" selection-end="5360" vertical-scroll-proportion="0.35376045" vertical-offset="1808" max-vertical-offset="3840" />
216
- </provider>
217
- </entry>
218
- <entry file="file://$PROJECT_DIR#x2F;readme.txt">
219
- <provider selected="true" editor-type-id="text-editor">
220
- <state line="171" column="79" selection-start="0" selection-end="19101" vertical-scroll-proportion="0.4308094" vertical-offset="3120" max-vertical-offset="4725" />
221
- </provider>
222
- </entry>
223
- <entry file="file://$PROJECT_DIR#x2F;soundy.php">
224
- <provider selected="true" editor-type-id="text-editor">
225
- <state line="102" column="22" selection-start="4522" selection-end="4522" vertical-scroll-proportion="0.58780843" vertical-offset="1125" max-vertical-offset="25260">
226
- <folding>
227
- <element signature="e#6#65#0" expanded="true" />
228
- </folding>
229
- </state>
230
- </provider>
231
- </entry>
232
- </component>
233
- </project>
234
-
js/back-end.js CHANGED
@@ -840,12 +840,11 @@ war_SoundyAdmin.prototype.initAudioType = function()
840
} );
841
}
842
843
-
844
war_SoundyAdmin.prototype.bindMediaUploader = function( field_name, button_name, field_type )
845
{
846
var _this = this;
847
848
- jQuery( '#' + button_name ).click( function()
849
{
850
event.preventDefault();
851
840
} );
841
}
842
843
war_SoundyAdmin.prototype.bindMediaUploader = function( field_name, button_name, field_type )
844
{
845
var _this = this;
846
847
+ jQuery( '#' + button_name ).click( function( event )
848
{
849
event.preventDefault();
850
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.5
6
- Stable tag: 3.4
7
License: GPL2
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
Donate link: http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_donate
@@ -168,6 +168,10 @@ This happens when the PHP parser version is too old. Soundy needs PHP 5.3 or hig
168
169
= Changelog =
170
171
= 3.4 &nbsp;&nbsp; - &nbsp;&nbsp; Juli 7th, 2016 =
172
* Play/Pause button images dimensions are now displayed in the Play/Pause Button tab of the plugin settings.
173
* Default values are now displayed as comment in the plugin metabox in posts and pages.
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
6
+ Stable tag: 3.5
7
License: GPL2
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
Donate link: http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_donate
168
169
= Changelog =
170
171
+ = 3.5 &nbsp;&nbsp; - &nbsp;&nbsp; August 8th, 2016 =
172
+ * Corrected bug related to strpos PHP function.
173
+ * Corrected bug that prevented Media Library buttons to work.
174
+
175
= 3.4 &nbsp;&nbsp; - &nbsp;&nbsp; Juli 7th, 2016 =
176
* Play/Pause button images dimensions are now displayed in the Play/Pause Button tab of the plugin settings.
177
* Default values are now displayed as comment in the plugin metabox in posts and pages.
soundy.php CHANGED
@@ -1,13 +1,13 @@
1
<?php
2
/**
3
* @package Soundy_Background_Music
4
- * @version 3.4
5
*/
6
/*
7
Plugin Name: Soundy Background Music
8
Plugin URI: http://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.4
11
Author: Bertrand du Couédic
12
Author URI: http://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.4';
35
public $soundy_free_wp_home_url = 'http://wordpress.org/plugins/soundy-background-music/';
36
public $sdy_pl_free_wp_home_url = 'http://wordpress.org/plugins/soundy-audio-playlist/';
37
public $soundy_pro_home_url = 'http://webartisan.ch/products/soundy-background-music/pro-wordpress-plugin/';
@@ -100,8 +100,8 @@ class WarSoundy
100
add_filter( 'plugin_row_meta', array( $this, 'add_pro_buy_link_to_plugins_page_soundy_entry' ), 10, 2 );
101
102
$uri = $_SERVER[ 'REQUEST_URI' ];
103
- $is_edit_post = ( strpos( $uri, '/wp-admin/post.php' ) == 0 ) ||
104
- ( strpos( $uri, '/wp-admin/post-new.php' ) == 0 );
105
106
if( ( isset( $_GET['page'] ) && ( $_GET['page'] == 'soundy' ) ) || $is_edit_post )
107
{
1
<?php
2
/**
3
* @package Soundy_Background_Music
4
+ * @version 3.5
5
*/
6
/*
7
Plugin Name: Soundy Background Music
8
Plugin URI: http://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.5
11
Author: Bertrand du Couédic
12
Author URI: http://webartisan.ch/en/about
13
License: GPL2
31
class WarSoundy
32
{
33
public $soundy_type = 'free';
34
+ public $soundy_version = '3.5';
35
public $soundy_free_wp_home_url = 'http://wordpress.org/plugins/soundy-background-music/';
36
public $sdy_pl_free_wp_home_url = 'http://wordpress.org/plugins/soundy-audio-playlist/';
37
public $soundy_pro_home_url = 'http://webartisan.ch/products/soundy-background-music/pro-wordpress-plugin/';
100
add_filter( 'plugin_row_meta', array( $this, 'add_pro_buy_link_to_plugins_page_soundy_entry' ), 10, 2 );
101
102
$uri = $_SERVER[ 'REQUEST_URI' ];
103
+ $is_edit_post = ( strpos( $uri, '/wp-admin/post.php' ) === 0 ) ||
104
+ ( strpos( $uri, '/wp-admin/post-new.php' ) === 0 );
105
106
if( ( isset( $_GET['page'] ) && ( $_GET['page'] == 'soundy' ) ) || $is_edit_post )
107
{