Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,12 @@ function linkmarklet_post() {
}

// our final update
$post_ID = wp_update_post( $post );


do_action( 'linkmarklet-pre-post',$post_ID);
$post_ID = wp_update_post( $post );
return $post_ID;
do_action( 'linkmarklet-after-post',$post_ID);
}

wp_enqueue_script( 'underscore' );
Expand Down Expand Up @@ -517,6 +520,7 @@ function linkmarklet_post() {
<label for="slug">Slug</label>
<input type="text" name="slug" id="slug" value="<?php if( isset( $settings['prepopulate_slug'] ) ) { echo sanitize_title( $title ); } ?>" />
</div>
<?php do_action('linkmarklet-form',$url,$title,$selection); ?>
<?php if( ! empty( $settings['support_tags'] ) ) : ?>
<div class="field textfield" id="row-tags">
<label for="url">Tags</label>
Expand All @@ -541,6 +545,7 @@ function reposition(){
var tags = document.getElementById('row-tags').offsetHeight;
height = height - tags;
<?php endif; ?>
<?php do_action(linkmarklet-js); ?>
document.getElementById('content').style.height = height + 'px';
}
reposition();
Expand Down