Skip to content

Commit

Permalink
Merge pull request #757 from publishpress/release-v2.11.0
Browse files Browse the repository at this point in the history
Release v2.11.0
  • Loading branch information
olatechpro authored May 18, 2023
2 parents f85aebe + 9d6d9ab commit 76e14a3
Show file tree
Hide file tree
Showing 15 changed files with 658 additions and 652 deletions.
10 changes: 0 additions & 10 deletions .builder-rsync-filters
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
- scripts
- tailwind.config.js
- tests
- vendor/pimple/pimple/.gitignore
- vendor/pimple/pimple/.php_cs.dist
- vendor/psr/container/.gitignore
- vendor/publishpress/wordpress-reviews/phpcs.xml.dist
- vendor/publishpress/wordpress-version-notices/.gitignore
- vendor/publishpress/wordpress-version-notices/README.md
Expand All @@ -60,12 +57,5 @@
- assets_wp
- phpunit.xml
- vendor/bin
- vendor/pimple/pimple/CHANGELOG
- vendor/pimple/pimple/README.rst
- vendor/pimple/pimple/composer.json
- vendor/pimple/pimple/ext
- vendor/pimple/pimple/phpunit.xml.dist
- vendor/pimple/pimple/src/Pimple/Tests
- vendor/psr/container/composer.json
- vendor/symfony/polyfill-ctype/composer.json
- vendor/bin
21 changes: 6 additions & 15 deletions addons/grouping/legacy-includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Contains all the legacy includes (and hooks) for the plugin. Eventually this will make its way into the new refactor
* of the plugin. But while in transition this allows these legacy files to be included as necessary.
*/
global $pagenow, $wp_version, $checkpage;
global $pagenow, $checkpage;
$checkpage= $pagenow;
global $checkpage;
define('OS_GROUPING_LEGACY_LOADED', true);
Expand Down Expand Up @@ -33,9 +33,6 @@
add_filter('manage_'.ppseries_get_series_slug().'_custom_column', 'manage_series_grouping_columns_inside',10,3);
add_action(''.ppseries_get_series_slug().'_add_form_fields', 'add_orgseries_group_fields',1);
add_action(''.ppseries_get_series_slug().'_edit_form', 'edit_orgseries_group_fields',2,2);
if ($wp_version < '3.1') {
add_filter('manage_edit-tags_columns', 'manage_series_grouping_columns');
}

//add new queryvar and custom joins for the group filter (on manage series page) - TODO DISABLED currently - still working for future version.
//add_action('parse_query', 'orgseries_group_parsequery');
Expand Down Expand Up @@ -304,8 +301,8 @@ function orgseries_group_where($where) {
}

function orgseries_manage_grouping_filter_setup() {
global $_GET, $wp_version;
if ( !empty($_GET['ser_grp']) && is_admin() && $wp_version >= 3.1 ) {
global $_GET;
if ( !empty($_GET['ser_grp']) && is_admin()) {
add_filter('get_terms_args', 'orgseries_grp_term_filter', 10, 2);
}
}
Expand All @@ -321,13 +318,11 @@ function orgseries_grp_term_filter($args, $taxonomies) {
}

function orgseries_manage_grouping_columns() {
global $wp_version;
//hook into manage-series-groups page
add_filter('manage_edit-series_group_columns', 'series_grouping_columns', 10);
add_filter('manage_series_group_custom_column', 'series_grouping_columns_inside',1,3);
add_filter('manage_edit-series_group_sortable_columns', 'series_group_sortable_columns');
if ($wp_version >= '3.1')
add_action('after-series-table', 'select_series_group_filter');
add_action('after-series-table', 'select_series_group_filter');
}

function orgseries_grouping_settings_setup() {
Expand Down Expand Up @@ -430,16 +425,12 @@ function select_series_group_filter($taxonomy) {
}

function series_grouping_columns_inside($content, $column_name, $id) {
global $wp_version;
$column_return = $content;
if ($column_name == ppseries_get_series_slug()) {
$get = get_series_in_group($id);
if ( $get == '' ) $count = '0';
else $count = count($get);
if ( $wp_version >= '3.1' )
$g_link = '<a href="edit-tags.php?taxonomy='.ppseries_get_series_slug().'&ser_grp='.$id.'">'.$count.'</a>';
else
$g_link = $count;
$g_link = '<a href="edit-tags.php?taxonomy='.ppseries_get_series_slug().'&ser_grp='.$id.'">'.$count.'</a>';
$column_return = '<p style="width: 40px; text-align: center;">'.$g_link.'</p>';
}
return $column_return;
Expand Down Expand Up @@ -653,4 +644,4 @@ function publishpress_series_groups($atts)
$args = shortcode_atts($default_atts, $atts);

return get_series_group_list($args['category_ids'], $args, false);
}
}
19 changes: 8 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@
}
],
"require": {
"pimple/pimple": "3.2.3.*",
"publishpress/pimple-pimple": "3.5.0.*",
"publishpress/psr-container": "2.0.1.*",
"publishpress/vendor-locator-series": "^1.0",
"publishpress/wordpress-reviews": "^1.1",
"publishpress/instance-protection": "^2.0",
"publishpress/wordpress-version-notices": "^2.1",
"publishpress/wordpress-banners": "^1.3",
"symfony/polyfill-ctype": "1.19.*",
"sabre/vobject": "^3.4",
"psr/container": "1.0.0",
"composer/installers": "v1.0.6",
"publishpress/wordpress-version-notices": "^1.1",
"alledia/wordpress-edd-license-integration": "^2.3",
"publishpress/wordpress-reviews": "^1.1",
"publishpress/publishpress-instance-protection": "^1.0",
"publishpress/wordpress-banners": "^1.3"
},
"autoload": {
"psr-4": {"OrganizeSeries\\": "src/"}
"composer/installers": "v1.0.6"
},
"require-dev": {
"automattic/vipwpcs": "^2.3",
Expand Down
Loading

0 comments on commit 76e14a3

Please sign in to comment.