Skip to content

Commit 29f9169

Browse files
authored
Merge pull request #197 from cloudinary/fix/dashboard-links
Remove 'More Actions' broken links if not connected
2 parents e7c5764 + f2c333c commit 29f9169

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/dashboard-content.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
<video id="dashboard-player" controls class="cld-video-player cld-fluid"></video>
8787
<?php endif; ?>
8888
<h3><?php esc_html_e( 'More Actions', 'cloudinary' ); ?></h3>
89-
<p><span class="dashicons dashicons-image-crop"></span> <?php echo wp_kses_post( $manage_text ); ?></p>
89+
<?php if ( $connection && $connection->is_connected() ): ?>
90+
<p><span class="dashicons dashicons-image-crop"></span> <?php echo wp_kses_post( $manage_text ); ?></p>
91+
<?php endif; ?>
9092
<p><span class="dashicons dashicons-welcome-learn-more"></span>
9193
<a href="https://cloudinary.com/documentation/wordpress_integration" target="_blank"> <?php esc_html_e( 'Learn more about getting started' ); ?></a></p>
9294
</div>

0 commit comments

Comments
 (0)