Skip to content

Commit c669938

Browse files
committed
Remove unnecessary methods/change upgrade
1 parent 30f8506 commit c669938

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed

php/class-media.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -942,28 +942,6 @@ public function get_transformation( $transformations, $type ) {
942942
return false;
943943
}
944944

945-
/**
946-
* Get the image overlay transformation for an asset.
947-
*
948-
* @param int $attachment_id The attachment ID.
949-
*
950-
* @return string The image overlay transformation string.
951-
*/
952-
public function get_image_overlay( $attachment_id ) {
953-
return (string) Relate::get_overlay( $attachment_id, 'image_overlay' );
954-
}
955-
956-
/**
957-
* Get the text overlay transformation for an asset.
958-
*
959-
* @param int $attachment_id The attachment ID.
960-
*
961-
* @return string The text overlay transformation string.
962-
*/
963-
public function get_text_overlay( $attachment_id ) {
964-
return (string) Relate::get_overlay( $attachment_id, 'text_overlay' );
965-
}
966-
967945
/**
968946
* Get transformations for an attachment to use in a final URL.
969947
*

php/class-utils.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,9 @@ protected static function get_upgrade_sequence() {
374374
'range' => array( '3.0.1', '3.1.9' ),
375375
'method' => array( 'Cloudinary\Utils', 'upgrade_3_1_9' ),
376376
),
377-
'3.2.14' => array(
378-
'range' => array( '3.1.9', '3.2.14' ),
379-
'method' => array( 'Cloudinary\Utils', 'upgrade_3_2_14' ),
377+
'3.2.15' => array(
378+
'range' => array( '3.1.9', '3.2.15' ),
379+
'method' => array( 'Cloudinary\Utils', 'upgrade_3_2_15' ),
380380
),
381381

382382
);
@@ -454,10 +454,10 @@ public static function upgrade_3_1_9() {
454454
}
455455

456456
/**
457-
* Upgrade DB from v3.1.9 to v3.2.14.
457+
* Upgrade DB from v3.1.9 to v3.2.15.
458458
* Adds columns for overlay data.
459459
*/
460-
public static function upgrade_3_2_14() {
460+
public static function upgrade_3_2_15() {
461461
global $wpdb;
462462
$tablename = self::get_relationship_table();
463463

0 commit comments

Comments
 (0)