Skip to content

Commit

Permalink
Merge pull request #131 from ashleyfae/fix/optional-param-error
Browse files Browse the repository at this point in the history
Remove default value from required parameter
  • Loading branch information
tareq1988 authored Jan 31, 2022
2 parents a26afae + 031591c commit 0003e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function remove_doc() {
*
* @return void
*/
public function remove_child_docs( $parent_id = 0, $force_delete ) {
public function remove_child_docs( $parent_id, $force_delete ) {
$childrens = get_children( [ 'post_parent' => $parent_id ] );

if ( $childrens ) {
Expand Down

0 comments on commit 0003e7b

Please sign in to comment.