Skip to content

Commit

Permalink
Fix 500 error (#787)
Browse files Browse the repository at this point in the history
Comment out hooks
  • Loading branch information
wilson1000 authored Nov 20, 2024
1 parent 5447177 commit dbc738d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/themes/clarity/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
*/

// Log on document_serve
add_action('document_serve', function ($file, $post_id, $attach_id) {
/*add_action('document_serve', function ($file, $post_id, $attach_id) {
error_log('CDPT_Debug: document_serve: ' . $file . ' ' . $post_id . ' ' . $attach_id);
}, 10, 3);
Expand All @@ -148,7 +148,7 @@
// Log on document saved
add_action('document_saved', function ($doc_id, $attach_id) {
error_log('CDPT_Debug: document_saved: ' . $doc_id . ' ' . $attach_id);
}, 10, 2);
}, 10, 2);*/

// Log on attachment upload
add_action('add_attachment', function ($attach_id) {
Expand Down

0 comments on commit dbc738d

Please sign in to comment.