Skip to content

Commit

Permalink
1.2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Oct 10, 2024
1 parent 224f1a3 commit a706e10
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 56 deletions.
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: stiofansisland, paoltaia, ayecode, ismiaini
Donate link: https://www.ko-fi.com/stiofan
Tags: login form, registration, registration form, user profile, user registration, members, membership
Requires at least: 4.9
Tested up to: 6.6
Stable tag: 1.2.19
Tested up to: 6.7
Stable tag: 1.2.20
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -146,7 +146,7 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver

== Changelog ==

= 1.2.20 - TBD =
= 1.2.20 - 2024-10-10 =
* Elementor compatibility error on Events demo site import - FIXED
* Delete account field with default key was not deleting column from our usermeta table - FIXED

Expand Down
6 changes: 3 additions & 3 deletions userswp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Plugin Name: UsersWP
Plugin URI: https://userswp.io/
Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form.
Version: 1.2.19
Version: 1.2.20
Author: AyeCode Ltd
Author URI: https://userswp.io
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: userswp
Domain Path: /languages
Requires at least: 4.9
Tested up to: 6.6
Tested up to: 6.7
*/

// If this file is called directly, abort.
Expand All @@ -24,7 +24,7 @@
}

if ( ! defined( 'USERSWP_VERSION' ) ) {
define( 'USERSWP_VERSION', '1.2.19' );
define( 'USERSWP_VERSION', '1.2.20' );
}

if ( ! defined( 'USERSWP_PATH' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
add_action('after_setup_theme', function () {
global $ayecode_ui_version,$ayecode_ui_file_key;
$this_version = "0.2.25";
$this_version = "0.2.26";
if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
$ayecode_ui_version = $this_version ;
$ayecode_ui_file_key = wp_hash( __FILE__ );
Expand Down
3 changes: 3 additions & 0 deletions vendor/ayecode/wp-ayecode-ui/change-log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
= 0.2.26 - 2024-09-12 =
* Primary color setting not working after update - FIXED

= 0.2.25 - 2024-09-05 =
* Don't apply custom colors to wp-admin - CHANGED

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AyeCode_UI_Settings {
*
* @var string
*/
public $version = '0.2.25';
public $version = '0.2.26';

/**
* Class textdomain.
Expand Down
14 changes: 14 additions & 0 deletions vendor/ayecode/wp-super-duper/change-log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
= 1.2.13 - 2024-10-10 =
* sd_template_page_options() not allowing child page selection - FIXED
* Filter added `sd_template_page_options_limit` to adjust the 500 pages limit - ADDED
* Multiple blocks with taxonomy linking feature can cause ajax query to loop and freeze browser - FIXED
* __experimentalGetPreviewDeviceType is deprecated - FIXED

= 1.2.10 - 2024-10-08 =
* Selecting multiple similar blocks with different settings can cause editor to freeze - FIXED
* Blocks with content already set will not call a refresh on load - CHANGED
* New shortcode param could cause some blocks to call the render callback twice on each change - FIXED

= 1.2.9 - 2024-09-12 =
* Template get_pages call changed to custom query for better memory management - CHANGED

= 1.2.7 - 2024-08-29 =
* Fix conflicts with UpSolution Core plugin - FIXED

Expand Down
58 changes: 43 additions & 15 deletions vendor/ayecode/wp-super-duper/sd-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3165,18 +3165,20 @@ function sd_visibility_output_options() {
* @return array Template page options.
*/
function sd_template_page_options( $args = array() ) {
global $sd_tmpl_page_options;
global $wpdb, $sd_tmpl_page_options;

if ( ! empty( $sd_tmpl_page_options ) ) {
$defaults = array(
'nocache' => false,
'with_slug' => false,
'default_label' => __( 'Select Page...', 'ayecode-connect' )
);

$args = wp_parse_args( $args, $defaults );

if ( ! empty( $sd_tmpl_page_options ) && empty( $args['nocache'] ) ) {
return $sd_tmpl_page_options;
}

$args = wp_parse_args( $args, array(
'child_of' => 0,
'sort_column' => 'post_title',
'sort_order' => 'ASC'
) );

$exclude_pages = array();
if ( $page_on_front = get_option( 'page_on_front' ) ) {
$exclude_pages[] = $page_on_front;
Expand All @@ -3186,24 +3188,50 @@ function sd_template_page_options( $args = array() ) {
$exclude_pages[] = $page_for_posts;
}

$exclude_pages_placeholders = '';
if ( ! empty( $exclude_pages ) ) {
// Sanitize the array of excluded pages and implode it for the SQL query.
$exclude_pages_placeholders = implode( ',', array_fill( 0, count( $exclude_pages ), '%d' ) );
}

// Prepare the base SQL query.
$sql = "SELECT ID, post_title, post_name FROM " . $wpdb->posts . " WHERE post_type = 'page' AND post_status = 'publish'";

// Add the exclusion if there are pages to exclude
if ( ! empty( $exclude_pages ) ) {
$args['exclude'] = $exclude_pages;
$sql .= " AND ID NOT IN ($exclude_pages_placeholders)";
}

$pages = get_pages( $args );
// Add sorting.
$sql .= " ORDER BY post_title ASC";

// Add a limit.
$limit = (int) apply_filters( 'sd_template_page_options_limit', 500, $args );

if ( $limit > 0 ) {
$sql .= " LIMIT " . (int) $limit;
}

// Prepare the SQL query to include the excluded pages only if we have placeholders.
$pages = $exclude_pages_placeholders ? $wpdb->get_results( $wpdb->prepare( $sql, ...$exclude_pages ) ) : $wpdb->get_results( $sql );

if ( ! empty( $args['default_label'] ) ) {
$options = array( '' => $args['default_label'] );
} else {
$options = array();
}

$options = array( '' => __( 'Select Page...', 'ayecode-connect' ) );
if ( ! empty( $pages ) ) {
foreach ( $pages as $page ) {
if ( ! empty( $page->ID ) && ! empty( $page->post_title ) ) {
$options[ $page->ID ] = $page->post_title . ' (#' . $page->ID . ')';
}
$title = ! empty( $args['with_slug'] ) ? $page->post_title . ' (' . $page->post_name . ')' : ( $page->post_title . ' (#' . $page->ID . ')' );

$options[ $page->ID ] = $title;
}
}

$sd_tmpl_page_options = $options;

return apply_filters( 'sd_template_page_options', $options );
return apply_filters( 'sd_template_page_options', $options, $args );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion vendor/ayecode/wp-super-duper/sd-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @wordpress-plugin
* Plugin Name: Super Duper - Examples
* Description: This is a Hello World test plugin for WP Super Duper Class.
* Version: 1.2.7
* Version: 1.2.13
* Author: AyeCode
* Author URI: https://ayecode.io
* Text Domain: super-duper
Expand Down
62 changes: 52 additions & 10 deletions vendor/ayecode/wp-super-duper/wp-super-duper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

if ( ! class_exists( 'WP_Super_Duper' ) ) {

define( 'SUPER_DUPER_VER', '1.2.7' );
define( 'SUPER_DUPER_VER', '1.2.13' );

/**
* A Class to be able to create a Widget, Shortcode or Block to be able to output content for WordPress.
Expand Down Expand Up @@ -1787,7 +1787,15 @@ function sd_show_view_options($this){
}

function sd_set_view_type($device){
wp.data.dispatch('core/edit-site') ? wp.data.dispatch('core/edit-site').__experimentalSetPreviewDeviceType($device) : wp.data.dispatch('core/edit-post').__experimentalSetPreviewDeviceType($device);
const wpVersion = '<?php global $wp_version; echo esc_attr($wp_version); ?>';
if (parseFloat(wpVersion) < 6.5) {
wp.data.dispatch('core/edit-site') ? wp.data.dispatch('core/edit-site').__experimentalSetPreviewDeviceType($device) : wp.data.dispatch('core/edit-post').__experimentalSetPreviewDeviceType($device);
} else {
const editorDispatch = wp.data.dispatch('core/editor');
if (editorDispatch) {
editorDispatch.setDeviceType($device);
}
}
}

jQuery(function(){
Expand Down Expand Up @@ -2672,6 +2680,7 @@ function sd_get_class_build_keys(){
// The "edit" property must be a valid function.
edit: function (props) {

const selectedBlock = wp.data.select('core/block-editor').getSelectedBlock();

<?php
// only include the drag/drop functions if required.
Expand Down Expand Up @@ -2769,7 +2778,7 @@ function hasSelectedInnerBlock(props) {
// if we have a post_type and a category then link them
if( isset($this->arguments['post_type']) && isset($this->arguments['category']) && !empty($this->arguments['category']['post_type_linked']) ){
?>
if(typeof(prev_attributes[props.clientId]) != 'undefined'){
if(typeof(prev_attributes[props.clientId]) != 'undefined' && selectedBlock && selectedBlock.clientId === props.clientId){
$pt = props.attributes.post_type;
if(post_type_rest_slugs.length){
$value = post_type_rest_slugs[0][$pt];
Expand Down Expand Up @@ -2881,29 +2890,58 @@ function hasSelectedInnerBlock(props) {
}else{
?>
/** Get device type const. */
const { deviceType } = wp.data.useSelect != 'undefined' ? wp.data.useSelect(select => {
const { __experimentalGetPreviewDeviceType } = select('core/edit-site') ? select('core/edit-site') : select('core/edit-post') ? select('core/edit-post') : ''; // For sie editor https://github.com/WordPress/gutenberg/issues/39248
return {
deviceType: __experimentalGetPreviewDeviceType(),
}
const wpVersion = '<?php global $wp_version; echo esc_attr($wp_version); ?>';
const { deviceType } = typeof wp.data.useSelect !== 'undefined' ? wp.data.useSelect(select => {
if (parseFloat(wpVersion) < 6.5) {
const { __experimentalGetPreviewDeviceType } = select('core/edit-site') ? select('core/edit-site') : select('core/edit-post') ? select('core/edit-post') : '';
return {
deviceType: __experimentalGetPreviewDeviceType(),
};
} else {
const editorSelect = select('core/editor');
if (editorSelect) {
return {
deviceType: editorSelect.getDeviceType(),
};
} else {
return {
deviceType: 'Desktop', // Default value if device type is not available
};
}
}
}, []) : '';
<?php } ?>
var content = props.attributes.content;
//console.log(props.attributes);
var shortcode = '';

function onChangeContent($type) {
// console.log(deviceType);

$refresh = false;
// Set the old content the same as the new one so we only compare all other attributes
if(typeof(prev_attributes[props.clientId]) != 'undefined'){
prev_attributes[props.clientId].content = props.attributes.content;

// don't compare the sd_shortcode as it is changed later
prev_attributes[props.clientId].sd_shortcode = props.attributes.sd_shortcode;
}else if(props.attributes.content === ""){
// if first load and content empty then refresh
$refresh = true;

}else{

// if not new and has content then set it so we dont go fetch it
if(props.attributes.content && props.attributes.content !== 'Please select the attributes in the block settings'){
prev_attributes[props.clientId] = props.attributes;
}

}



if ( ( !is_fetching && JSON.stringify(prev_attributes[props.clientId]) != JSON.stringify(props.attributes) ) || $refresh ) {


is_fetching = true;

var data = {
Expand Down Expand Up @@ -3002,7 +3040,11 @@ function onChangeContent($type) {

if(shortcode){

props.setAttributes({sd_shortcode: shortcode});
// can cause a react exception when selecting multile blocks of the same type when the settings are not the same
if (props.attributes.sd_shortcode !== shortcode) {
props.setAttributes({ sd_shortcode: shortcode });
}


<?php
if(!empty($this->options['nested-block']) || !empty($this->arguments['html']) ){
Expand Down
28 changes: 14 additions & 14 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@
},
{
"name": "ayecode/wp-ayecode-ui",
"version": "0.2.25",
"version_normalized": "0.2.25.0",
"version": "0.2.26",
"version_normalized": "0.2.26.0",
"source": {
"type": "git",
"url": "https://github.com/AyeCode/wp-ayecode-ui.git",
"reference": "1fc1d0e5826988954a297ffc30a5d37486822509"
"reference": "0c3b7f0c6693ae51da2b40ccbbbb52eab09f40bb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/1fc1d0e5826988954a297ffc30a5d37486822509",
"reference": "1fc1d0e5826988954a297ffc30a5d37486822509",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/0c3b7f0c6693ae51da2b40ccbbbb52eab09f40bb",
"reference": "0c3b7f0c6693ae51da2b40ccbbbb52eab09f40bb",
"shasum": ""
},
"time": "2024-09-05T14:29:37+00:00",
"time": "2024-09-12T15:31:54+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -101,7 +101,7 @@
],
"support": {
"issues": "https://github.com/AyeCode/wp-ayecode-ui/issues",
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.25"
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.26"
},
"install-path": "../ayecode/wp-ayecode-ui"
},
Expand Down Expand Up @@ -206,24 +206,24 @@
},
{
"name": "ayecode/wp-super-duper",
"version": "1.2.7",
"version_normalized": "1.2.7.0",
"version": "1.2.13",
"version_normalized": "1.2.13.0",
"source": {
"type": "git",
"url": "https://github.com/AyeCode/wp-super-duper.git",
"reference": "077bbe648ab7b3a9cc77068d2e0c326dfe1a6849"
"reference": "9b7216a5175c4d12b030d28a87a05aaed91c4eea"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AyeCode/wp-super-duper/zipball/077bbe648ab7b3a9cc77068d2e0c326dfe1a6849",
"reference": "077bbe648ab7b3a9cc77068d2e0c326dfe1a6849",
"url": "https://api.github.com/repos/AyeCode/wp-super-duper/zipball/9b7216a5175c4d12b030d28a87a05aaed91c4eea",
"reference": "9b7216a5175c4d12b030d28a87a05aaed91c4eea",
"shasum": ""
},
"require": {
"composer/installers": "~1.0",
"php": ">=5.4.0"
},
"time": "2024-08-29T16:44:21+00:00",
"time": "2024-10-10T13:21:28+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -255,7 +255,7 @@
],
"support": {
"issues": "https://github.com/AyeCode/wp-super-duper/issues",
"source": "https://github.com/AyeCode/wp-super-duper/tree/1.2.7"
"source": "https://github.com/AyeCode/wp-super-duper/tree/1.2.13"
},
"install-path": "../ayecode/wp-super-duper"
},
Expand Down
Loading

0 comments on commit a706e10

Please sign in to comment.