Skip to content

Commit

Permalink
Merge pull request #343 from publishpress/feature/#338-Bulk_edit_add
Browse files Browse the repository at this point in the history
feature/#338-Bulk_edit_add
  • Loading branch information
olatechpro authored Dec 9, 2021
2 parents 1f1e09e + 68d2124 commit 79c61fa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
27 changes: 19 additions & 8 deletions orgSeries-taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function wp_set_post_series( $post, $update, $post_ID = 0, $series_id = array(),


//fix for the revisions feature in WP 2.6+ && bulk-edit stuff.
if ($post->post_type == 'revision' || ( isset($_GET['bulk_edit_series']) && $_GET['bulk_edit_series'] == 'bulk' ) || !isset($_REQUEST['is_series_save'] ) ) {
if ($post->post_type == 'revision' || ( isset($_GET['bulk_edit_series']) && $_GET['bulk_edit_series'] == 'bulk' && $_GET['post_series'] == -1 ) || !isset($_REQUEST['is_series_save'] ) ) {
return;
}

Expand Down Expand Up @@ -690,15 +690,26 @@ function inline_edit_series($column_name, $type) {
function bulk_edit_series($column_name, $type) {
if ( $type == 'post' ) {
?>
<fieldset class="inline-edit-col-right"><div class="inline-edit-col">
<div class="inline-edit-group">
<label class="inline-edit-series">
<input type="hidden" name="bulk_edit_series" value="bulk" />
</label>
</div>
</div></fieldset>
<input type="hidden" name="bulk_edit_series" value="bulk" />
<?php
}


if ( $type == 'post' && $column_name == ppseries_get_series_slug() ) {
?>
<fieldset class="inline-edit-col-right"><div class="inline-edit-col">
<div class="inline_edit_series_">
<span><?php _e('Series:', 'organize-series'); ?></span>
<?php wp_dropdown_series('name=post_series&class=bulk_post_series_select&hide_empty=0&show_option_none=— No Change —&context=quick-edit'); ?>
<input type="hidden" name="series_part" class="series_part" />
<input type="hidden" name="series_post_id" class="series_post_id" />
<input type="hidden" name="is_series_save" value="1" />


</div></div></fieldset>
<?php
}

}

function inline_edit_series_js() {
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ v2.7.1- [===unreleased===]
* Added: "Click to view" for "Series Table of Contents URL" #320
* Added: Add series group template to PRO version group addon #202
* Fixed: Sidebar warning for theme without sidebar.php on custom template #335
* Fixed: Improved design for Series overview page #309
* Added: Bulk edit for series #338

v2.7.0- 2021-11-17
* Fixed: Clarify what HTML is allowed in templates #273
Expand Down

0 comments on commit 79c61fa

Please sign in to comment.