Skip to content

Commit f03614f

Browse files
committed
fix filter key
1 parent 6127b06 commit f03614f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php/class-delivery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct( Plugin $plugin ) {
8080
protected function setup_hooks() {
8181
add_filter( 'cloudinary_filter_out_local', '__return_false' );
8282
add_action( 'update_option_cloudinary_media_display', array( $this, 'clear_cache' ) );
83-
add_filter( 'cloudinary_post_id_taxonomy', array( $this, 'get_current_post_id' ) );
83+
add_filter( 'cloudinary_current_post_id', array( $this, 'get_current_post_id' ) );
8484
add_filter( 'the_content', array( $this, 'add_post_id' ) );
8585
}
8686

php/media/class-global-transformations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ protected function get_current_post() {
576576
*
577577
* @return {WP_Post|null}
578578
*/
579-
$post_id = apply_filters( 'cloudinary_post_id', null );
579+
$post_id = apply_filters( 'cloudinary_current_post_id', null );
580580

581581
if ( is_null( $post_id ) ) {
582582
return null;

0 commit comments

Comments
 (0)