Skip to content

Commit

Permalink
1.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Aug 23, 2021
1 parent faccc1d commit ce187bc
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 3 deletions.
1 change: 1 addition & 0 deletions change-log.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
= 1.0.27 =
* Category settings loads only 10 categories on CPT change - FIXED
* Hook added to filter class & attributes for Elementor widget output - ADDED
* Functions file added for individual function calls - ADDED

= 1.0.26 =
* Error on setting array option value in block editor - FIXED
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ayecode/wp-super-duper",
"version": "1.0.26",
"version": "1.0.27",
"type": "library",
"description": "Lets you create a widget, block and shortcode all from the one file .",
"keywords": ["WordPress","super duper","wp"],
Expand All @@ -24,6 +24,11 @@
"wp-coding-standards/wpcs": "*"
},
"autoload": {
"classmap": ["wp-super-duper.php"]
"classmap": [
"wp-super-duper.php"
],
"files": [
"sd-functions.php"
]
}
}
38 changes: 38 additions & 0 deletions sd-functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* A file for common functions.
*/

/**
* Return an array of global $pagenow page names that should be used to exclude register_widgets.
*
* Used to block the loading of widgets on certain wp-admin pages to save on memory.
*
* @return mixed|void
*/
function sd_pagenow_exclude(){
return apply_filters( 'sd_pagenow_exclude', array(
'upload.php',
'edit-comments.php',
'edit-tags.php',
'index.php',
'media-new.php',
'options-discussion.php',
'options-writing.php',
'edit.php',
'themes.php',
'users.php',
) );
}


/**
* Return an array of widget class names that should be excluded.
*
* Used to conditionally load widgets code.
*
* @return mixed|void
*/
function sd_widget_exclude(){
return apply_filters( 'sd_widget_exclude', array() );
}
2 changes: 1 addition & 1 deletion wp-super-duper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
class WP_Super_Duper extends WP_Widget {

public $version = "1.0.26";
public $version = "1.0.27";
public $font_awesome_icon_version = "5.11.2";
public $block_code;
public $options;
Expand Down

0 comments on commit ce187bc

Please sign in to comment.