TinyMCE default link target to “_blank”

I was able to achieve this by replacing the wplink plugin with tinyMCE’s default link plugin, and then using the original function as is. I created my own plugin though for the whole tinyMCE editor, and then copy/pasted the individual plugin folders from wp-includes/js/tinymce/plugins, and then only included the ‘link’ plugin, so what I wound … Read more

WordPress prompt checklist before publish?

Create new plugin and add this as your the content: <?php /* Plugin Name: [CR]TestDropIn Plugin URI: http://bayu.freelancer.web.id/ Description: A barebone plugin to test whatever wordpress API you want to test Author: Arief Bayu Purwanto Version: 0.0.1 Author URI: http://bayu.freelancer.web.id */ add_action(‘admin_head’, ‘xxx_admin_hook’); function xxx_admin_hook(){ ?> <script language=”javascript” type=”text/javascript”> jQuery(document).ready(function() { jQuery(‘#post’).submit(function() { //alert(‘Handler for … Read more

Sub posts and non unique post_name

Hi @jonasl: I asked a clarifying question but I’m going to go ahead and at least start to answer. The function in WordPress core that controls post slugs and adds numbers to them in order to force them to be unique is wp_unique_post_slug(). In WordPress 3.0.3 you can find it on line 2530 in /wp-includes/post.php. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)