This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Function creates post duplicate as a draft and redirects then to the edit post screen | |
*/ | |
function iv_duplicate_post_as_draft(){ | |
global $wpdb; | |
if (! ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'iv_duplicate_post_as_draft' == $_REQUEST['action'] ) ) ) { | |
wp_die('No post to duplicate has been supplied!'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wp-core-ui .attachment .thumbnail .svg-centered { | |
-webkit-transform: translate(0,0) !important; | |
-ms-transform: translate(0,0) !important; | |
transform: translate(0,0) !important; | |
} | |
.wp-core-ui .attachment .thumbnail .svg-centered svg { | |
width: 100%; | |
height: calc(100% - 1.4em - 10px); | |
} | |
#postimagediv .inside img[src$=".svg"] { width: 100% !important; height: auto !important;} |
NewerOlder