Soundy Background Music - Version 3.7

Version Description

   -    October 7th, 2016 = * Fixed bug that prevented plugin metabox to appear in admin edit pages when website had a path to html root directory.

Download this release

Release Info

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

Code changes from version 3.6 to 3.7

.idea/3.6.iml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
.idea/copyright/profiles_settings.xml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <component name="CopyrightManager">
2
+ <settings default="" />
3
+ </component>
.idea/deployment.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
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>
.idea/misc.xml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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="ProjectLevelVcsManager" settingsEditedManually="false">
35
+ <OptionsSetting value="true" id="Add" />
36
+ <OptionsSetting value="true" id="Remove" />
37
+ <OptionsSetting value="true" id="Checkout" />
38
+ <OptionsSetting value="true" id="Update" />
39
+ <OptionsSetting value="true" id="Status" />
40
+ <OptionsSetting value="true" id="Edit" />
41
+ <ConfirmationsSetting value="0" id="Add" />
42
+ <ConfirmationsSetting value="0" id="Remove" />
43
+ </component>
44
+ <component name="SvnBranchConfigurationManager">
45
+ <option name="mySupportsUserInfoFilter" value="true" />
46
+ </component>
47
+ </project>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/3.6.iml" filepath="$PROJECT_DIR$/.idea/3.6.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="svn" />
5
+ </component>
6
+ </project>
.idea/workspace.xml ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" readonly="true" id="63d4ed1f-2130-4765-a9cd-e5ef9c678333" name="Default" comment="" />
5
+ <ignored path="3.6.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
+ <option name="TRACKING_ENABLED" value="true" />
9
+ <option name="SHOW_DIALOG" value="false" />
10
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
+ <option name="LAST_RESOLUTION" value="IGNORE" />
13
+ </component>
14
+ <component name="CreatePatchCommitExecutor">
15
+ <option name="PATCH_PATH" value="" />
16
+ </component>
17
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
18
+ <component name="FavoritesManager">
19
+ <favorites_list name="3.6" />
20
+ </component>
21
+ <component name="FileEditorManager">
22
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300" />
23
+ </component>
24
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
25
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
26
+ <component name="JsGulpfileManager">
27
+ <detection-done>true</detection-done>
28
+ <sorting>DEFINITION_ORDER</sorting>
29
+ </component>
30
+ <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
31
+ <component name="ProjectFrameBounds">
32
+ <option name="y" value="23" />
33
+ <option name="width" value="1440" />
34
+ <option name="height" value="839" />
35
+ </component>
36
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
37
+ <OptionsSetting value="true" id="Add" />
38
+ <OptionsSetting value="true" id="Remove" />
39
+ <OptionsSetting value="true" id="Checkout" />
40
+ <OptionsSetting value="true" id="Update" />
41
+ <OptionsSetting value="true" id="Status" />
42
+ <OptionsSetting value="true" id="Edit" />
43
+ <ConfirmationsSetting value="0" id="Add" />
44
+ <ConfirmationsSetting value="0" id="Remove" />
45
+ </component>
46
+ <component name="ProjectView">
47
+ <navigator currentView="ProjectPane" proportions="" version="1">
48
+ <flattenPackages />
49
+ <showMembers />
50
+ <showModules />
51
+ <showLibraryContents />
52
+ <hideEmptyPackages />
53
+ <abbreviatePackageNames />
54
+ <autoscrollToSource />
55
+ <autoscrollFromSource />
56
+ <sortByType />
57
+ <manualOrder />
58
+ <foldersAlwaysOnTop value="true" />
59
+ </navigator>
60
+ <panes>
61
+ <pane id="ProjectPane">
62
+ <subPane>
63
+ <PATH>
64
+ <PATH_ELEMENT>
65
+ <option name="myItemId" value="3.7" />
66
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
67
+ </PATH_ELEMENT>
68
+ </PATH>
69
+ <PATH>
70
+ <PATH_ELEMENT>
71
+ <option name="myItemId" value="3.7" />
72
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
73
+ </PATH_ELEMENT>
74
+ <PATH_ELEMENT>
75
+ <option name="myItemId" value="3.7" />
76
+ <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
77
+ </PATH_ELEMENT>
78
+ </PATH>
79
+ </subPane>
80
+ </pane>
81
+ <pane id="Scratches" />
82
+ <pane id="Scope" />
83
+ </panes>
84
+ </component>
85
+ <component name="PropertiesComponent">
86
+ <property name="options.lastSelected" value="File.Encoding" />
87
+ <property name="options.splitter.main.proportions" value="0.3" />
88
+ <property name="options.splitter.details.proportions" value="0.2" />
89
+ <property name="options.searchVisible" value="true" />
90
+ <property name="WebServerToolWindowFactoryState" value="true" />
91
+ </component>
92
+ <component name="ShelveChangesManager" show_recycled="false">
93
+ <option name="remove_strategy" value="false" />
94
+ </component>
95
+ <component name="SvnConfiguration" cleanupOnStartRun="true">
96
+ <configuration>$USER_HOME$/.subversion</configuration>
97
+ <supportedVersion>125</supportedVersion>
98
+ </component>
99
+ <component name="TaskManager">
100
+ <task active="true" id="Default" summary="Default task">
101
+ <changelist id="63d4ed1f-2130-4765-a9cd-e5ef9c678333" name="Default" comment="" />
102
+ <created>1471710900014</created>
103
+ <option name="number" value="Default" />
104
+ <option name="presentableId" value="Default" />
105
+ <updated>1471710900014</updated>
106
+ <workItem from="1471710902299" duration="111000" />
107
+ <workItem from="1475829222769" duration="54000" />
108
+ </task>
109
+ <servers />
110
+ </component>
111
+ <component name="TimeTrackingManager">
112
+ <option name="totallyTimeSpent" value="165000" />
113
+ </component>
114
+ <component name="ToolWindowManager">
115
+ <frame x="0" y="23" width="1440" height="839" extended-state="6" />
116
+ <editor active="false" />
117
+ <layout>
118
+ <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
119
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25679544" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
120
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
121
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
122
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
123
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32931727" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
124
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
125
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
126
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
127
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
128
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
129
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
130
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
131
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
132
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
133
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
134
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
135
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
136
+ </layout>
137
+ </component>
138
+ <component name="Vcs.Log.UiProperties">
139
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
140
+ <collection />
141
+ </option>
142
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
143
+ <collection />
144
+ </option>
145
+ </component>
146
+ <component name="VcsContentAnnotationSettings">
147
+ <option name="myLimit" value="2678400000" />
148
+ </component>
149
+ <component name="XDebuggerManager">
150
+ <breakpoint-manager />
151
+ <watches-manager />
152
+ </component>
153
+ <component name="editorHistoryManager">
154
+ <entry file="file://$PROJECT_DIR$/templates/front-end.php">
155
+ <provider selected="true" editor-type-id="text-editor">
156
+ <state relative-caret-position="0">
157
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
158
+ <folding>
159
+ <marker date="1471461337000" expanded="true" signature="2892:2906" ph="..." />
160
+ </folding>
161
+ </state>
162
+ </provider>
163
+ </entry>
164
+ <entry file="file://$PROJECT_DIR$/templates/front-end.php">
165
+ <provider selected="true" editor-type-id="text-editor">
166
+ <state relative-caret-position="15">
167
+ <caret line="188" column="22" selection-start-line="188" selection-start-column="22" selection-end-line="188" selection-end-column="22" />
168
+ <folding>
169
+ <marker date="1471461337000" expanded="true" signature="2892:2906" ph="..." />
170
+ </folding>
171
+ </state>
172
+ </provider>
173
+ </entry>
174
+ </component>
175
+ </project>
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: 4.6
6
- Stable tag: 3.6
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,9 @@ This happens when the PHP parser version is too old. Soundy needs PHP 5.3 or hig
168
 
169
  = Changelog =
170
 
 
 
 
171
  = 3.6 &nbsp;&nbsp; - &nbsp;&nbsp; August 17th, 2016 =
172
  * Corrected PHP bug related to choice of Play/Pause Button Corner.
173
 
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.7
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.7 &nbsp;&nbsp; - &nbsp;&nbsp; October 7th, 2016 =
172
+ * Fixed bug that prevented plugin metabox to appear in admin edit pages when website had a path to html root directory.
173
+
174
  = 3.6 &nbsp;&nbsp; - &nbsp;&nbsp; August 17th, 2016 =
175
  * Corrected PHP bug related to choice of Play/Pause Button Corner.
176
 
soundy.php CHANGED
@@ -101,7 +101,9 @@ class WarSoundy
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
  {
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
+ ( strpos( $uri, '/wp-admin/post.php' ) > 0 ) ||
106
+ ( strpos( $uri, '/wp-admin/post-new.php' ) > 0 );
107
 
108
  if( ( isset( $_GET['page'] ) && ( $_GET['page'] == 'soundy' ) ) || $is_edit_post )
109
  {