Version Description
= 8.1.08 =
- This version addresses various bug fixes, feature requests and security fixes.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 8.2.08.002 |
Comparing to | |
See all releases |
Code changes from version 8.2.08.001 to 8.2.08.002
- wppa-functions.php +2 -1
- wppa-non-admin.php +1 -2
- wppa-photo-admin-autosave.php +25 -20
- wppa-style.css +19 -1
- wppa.php +2 -2
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 8.2.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3793,6 +3793,7 @@ global $blog_id;
|
|
3793 |
<!-- Start container ' . $mocc . ' -->
|
3794 |
<div
|
3795 |
id="wppa-modal-container-' . $mocc . '"
|
|
|
3796 |
style="position:relative;z-index:100000;"
|
3797 |
data-wppa="yes"
|
3798 |
>
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 8.2.08.002
|
7 |
*
|
8 |
*/
|
9 |
|
3793 |
<!-- Start container ' . $mocc . ' -->
|
3794 |
<div
|
3795 |
id="wppa-modal-container-' . $mocc . '"
|
3796 |
+
class="wppa-modal-container"
|
3797 |
style="position:relative;z-index:100000;"
|
3798 |
data-wppa="yes"
|
3799 |
>
|
wppa-non-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the non admin stuff
|
6 |
-
* Version 8.2.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -17,7 +17,6 @@ require_once 'wppa-cart.php';
|
|
17 |
if ( ! is_admin() ) {
|
18 |
require_once 'wppa-tinymce-photo-front.php';
|
19 |
}
|
20 |
-
require_once ABSPATH . 'wp-includes/class-wp-editor.php';
|
21 |
|
22 |
/* LOAD STYLESHEET */
|
23 |
add_action('wp_enqueue_scripts', 'wppa_add_style');
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the non admin stuff
|
6 |
+
* Version 8.2.08.002
|
7 |
*
|
8 |
*/
|
9 |
|
17 |
if ( ! is_admin() ) {
|
18 |
require_once 'wppa-tinymce-photo-front.php';
|
19 |
}
|
|
|
20 |
|
21 |
/* LOAD STYLESHEET */
|
22 |
add_action('wp_enqueue_scripts', 'wppa_add_style');
|
wppa-photo-admin-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
-
* Version 8.2.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3936,7 +3936,7 @@ function wppa_fe_edit_photo( $photo ) {
|
|
3936 |
wppa_echo(
|
3937 |
'<input' .
|
3938 |
' type="text"' .
|
3939 |
-
' style="width:100
|
3940 |
' id="' . $items[$idx] . '"' .
|
3941 |
' name="' . $items[$idx] . '"' .
|
3942 |
' value="' . esc_attr( $value ) . '"' .
|
@@ -3945,24 +3945,27 @@ function wppa_fe_edit_photo( $photo ) {
|
|
3945 |
if ( $types[$idx] == 'textarea' ) {
|
3946 |
if ( wppa_switch( 'use_wp_editor' ) ) {
|
3947 |
|
3948 |
-
/*
|
3949 |
-
Solution according to https://developer.wordpress.org/reference/functions/wp_editor/#comment-2273
|
3950 |
-
but without the bugs in it
|
3951 |
-
*/
|
3952 |
-
|
3953 |
wp_editor( $value,
|
3954 |
-
|
3955 |
-
|
3956 |
-
|
3957 |
-
|
3958 |
-
|
3959 |
-
|
3960 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3961 |
}
|
3962 |
else {
|
3963 |
wppa_echo(
|
3964 |
'<textarea' .
|
3965 |
-
' style="width:100%;
|
3966 |
' id="' . $items[$idx] . '"' .
|
3967 |
' name="' . $items[$idx] . '"' .
|
3968 |
' >' .
|
@@ -4000,17 +4003,19 @@ function wppa_fe_edit_photo( $photo ) {
|
|
4000 |
global $wp_scripts;
|
4001 |
$wp_scripts->reset();
|
4002 |
|
|
|
4003 |
if ( wppa_switch( 'use_wp_editor' ) ) {
|
4004 |
|
4005 |
-
|
4006 |
-
|
4007 |
-
|
4008 |
-
|
4009 |
-
|
4010 |
\_WP_Editors::enqueue_scripts(true);
|
4011 |
print_footer_scripts();
|
4012 |
\_WP_Editors::editor_js();
|
4013 |
}
|
|
|
4014 |
|
4015 |
}
|
4016 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
+
* Version 8.2.08.002
|
7 |
*
|
8 |
*/
|
9 |
|
3936 |
wppa_echo(
|
3937 |
'<input' .
|
3938 |
' type="text"' .
|
3939 |
+
' style="width:100%;box-sizing:border-box;"' .
|
3940 |
' id="' . $items[$idx] . '"' .
|
3941 |
' name="' . $items[$idx] . '"' .
|
3942 |
' value="' . esc_attr( $value ) . '"' .
|
3945 |
if ( $types[$idx] == 'textarea' ) {
|
3946 |
if ( wppa_switch( 'use_wp_editor' ) ) {
|
3947 |
|
|
|
|
|
|
|
|
|
|
|
3948 |
wp_editor( $value,
|
3949 |
+
$items[$idx],
|
3950 |
+
array( 'wpautop' => true,
|
3951 |
+
'media_buttons' => false,
|
3952 |
+
'textarea_rows' => '6',
|
3953 |
+
'tinymce' => true
|
3954 |
+
)
|
3955 |
+
);
|
3956 |
+
static $been_here;
|
3957 |
+
if ( ! $been_here ) {
|
3958 |
+
// require_once ABSPATH . 'wp-includes/class-wp-editor.php';
|
3959 |
+
\_WP_Editors::enqueue_scripts(true);
|
3960 |
+
print_footer_scripts();
|
3961 |
+
$been_here = true;
|
3962 |
+
}
|
3963 |
+
\_WP_Editors::editor_js();
|
3964 |
}
|
3965 |
else {
|
3966 |
wppa_echo(
|
3967 |
'<textarea' .
|
3968 |
+
' style="width:100%;box-sizing:border-box;"' .
|
3969 |
' id="' . $items[$idx] . '"' .
|
3970 |
' name="' . $items[$idx] . '"' .
|
3971 |
' >' .
|
4003 |
global $wp_scripts;
|
4004 |
$wp_scripts->reset();
|
4005 |
|
4006 |
+
/*
|
4007 |
if ( wppa_switch( 'use_wp_editor' ) ) {
|
4008 |
|
4009 |
+
/*
|
4010 |
+
Solution according to https://developer.wordpress.org/reference/functions/wp_editor/#comment-2273
|
4011 |
+
but without the bugs in it
|
4012 |
+
*/
|
4013 |
+
/*
|
4014 |
\_WP_Editors::enqueue_scripts(true);
|
4015 |
print_footer_scripts();
|
4016 |
\_WP_Editors::editor_js();
|
4017 |
}
|
4018 |
+
*/
|
4019 |
|
4020 |
}
|
4021 |
|
wppa-style.css
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/* It is strongly recommended not to modify this file because it will be overwritten by an update
|
4 |
/* Any modifications to styles that are not configurable on the settings page should be made in the standard wp customizer css tab
|
5 |
/*
|
6 |
-
/* This is version 8.2.
|
7 |
*/
|
8 |
|
9 |
.wppa-container, .wppa-cover-box, .wppa-thumb-area {
|
@@ -672,3 +672,21 @@ display:none;
|
|
672 |
padding:6px;
|
673 |
vertical-align:middle;
|
674 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
/* It is strongly recommended not to modify this file because it will be overwritten by an update
|
4 |
/* Any modifications to styles that are not configurable on the settings page should be made in the standard wp customizer css tab
|
5 |
/*
|
6 |
+
/* This is version 8.2.08.002
|
7 |
*/
|
8 |
|
9 |
.wppa-container, .wppa-cover-box, .wppa-thumb-area {
|
672 |
padding:6px;
|
673 |
vertical-align:middle;
|
674 |
}
|
675 |
+
|
676 |
+
/* For use of wp editor in frontend */
|
677 |
+
.wppa-modal-container .ed_button {
|
678 |
+
border-radius: 3px !important;
|
679 |
+
color: #333 !important;
|
680 |
+
background: transparent !important;
|
681 |
+
background-image: none !important;
|
682 |
+
}
|
683 |
+
.wppa-modal-container .wp-editor-area {
|
684 |
+
border: 0 !important;
|
685 |
+
}
|
686 |
+
.wppa-modal-container .wp-editor-container {
|
687 |
+
border: 1px solid #333 !important;
|
688 |
+
border-radius: 0 0 5px 5px !important;
|
689 |
+
}
|
690 |
+
.wppa-modal-container .mce-container {
|
691 |
+
border-radius: 0 0 5px 5px !important;
|
692 |
+
}
|
wppa.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: WP Photo Album Plus
|
4 |
* Description: Easily manage and display your photo albums and slideshows within your WordPress site.
|
5 |
-
* Version: 8.2.08.
|
6 |
* Author: J.N. Breetvelt a.k.a. OpaJaap
|
7 |
* Author URI: http://wppa.opajaap.nl/
|
8 |
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
|
@@ -23,7 +23,7 @@ global $wpdb;
|
|
23 |
global $wp_version;
|
24 |
|
25 |
/* WPPA Version */
|
26 |
-
global $wppa_version; $wppa_version = '8.2.
|
27 |
global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
|
28 |
|
29 |
/* Init page js data */
|
2 |
/*
|
3 |
* Plugin Name: WP Photo Album Plus
|
4 |
* Description: Easily manage and display your photo albums and slideshows within your WordPress site.
|
5 |
+
* Version: 8.2.08.002
|
6 |
* Author: J.N. Breetvelt a.k.a. OpaJaap
|
7 |
* Author URI: http://wppa.opajaap.nl/
|
8 |
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
|
23 |
global $wp_version;
|
24 |
|
25 |
/* WPPA Version */
|
26 |
+
global $wppa_version; $wppa_version = '8.2.08.002'; // WPPA software version
|
27 |
global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
|
28 |
|
29 |
/* Init page js data */
|