当前位置: 首页>>代码示例>>PHP>>正文


PHP funky_javascript_fix函数代码示例

本文整理汇总了PHP中funky_javascript_fix函数的典型用法代码示例。如果您正苦于以下问题:PHP funky_javascript_fix函数的具体用法?PHP funky_javascript_fix怎么用?PHP funky_javascript_fix使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了funky_javascript_fix函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_default_post_to_edit

<script type="text/javascript">
<!--
window.close()
-->
</script>
</head>
<body></body>
</html>
<?php 
    exit;
}
$post = get_default_post_to_edit();
$popuptitle = wp_specialchars(stripslashes($popuptitle));
$text = wp_specialchars(stripslashes(urldecode($text)));
$popuptitle = funky_javascript_fix($popuptitle);
$text = funky_javascript_fix($text);
$post_title = wp_specialchars($_REQUEST['post_title']);
if (!empty($post_title)) {
    $post->post_title = stripslashes($post_title);
} else {
    $post->post_title = $popuptitle;
}
$content = wp_specialchars($_REQUEST['content']);
$popupurl = wp_specialchars($_REQUEST['popupurl']);
if (!empty($content)) {
    $post->post_content = wp_specialchars(stripslashes($_REQUEST['content']));
} else {
    $post->post_content = '<a href="' . $popupurl . '">' . $popuptitle . '</a>' . "\n{$text}";
}
/* /big funky fixes */
?>
开发者ID:robertlange81,项目名称:Website,代码行数:31,代码来源:bookmarklet.php

示例2: get_default_post_to_edit

function get_default_post_to_edit()
{
    if (!empty($_REQUEST['post_title'])) {
        $post_title = wp_specialchars(stripslashes($_REQUEST['post_title']));
    } else {
        if (!empty($_REQUEST['popuptitle'])) {
            $post_title = wp_specialchars(stripslashes($_REQUEST['popuptitle']));
            $post_title = funky_javascript_fix($post_title);
        } else {
            $post_title = '';
        }
    }
    if (!empty($_REQUEST['content'])) {
        $post_content = wp_specialchars(stripslashes($_REQUEST['content']));
    } else {
        if (!empty($post_title)) {
            $text = wp_specialchars(stripslashes(urldecode($_REQUEST['text'])));
            $text = funky_javascript_fix($text);
            $popupurl = clean_url(stripslashes($_REQUEST['popupurl']));
            $post_content = '<a href="' . $popupurl . '">' . $post_title . '</a>' . "\n{$text}";
        }
    }
    if (!empty($_REQUEST['excerpt'])) {
        $post_excerpt = wp_specialchars(stripslashes($_REQUEST['excerpt']));
    } else {
        $post_excerpt = '';
    }
    $post->post_status = 'draft';
    $post->comment_status = get_settings('default_comment_status');
    $post->ping_status = get_settings('default_ping_status');
    $post->post_pingback = get_settings('default_pingback_flag');
    $post->post_category = get_settings('default_category');
    $post->post_content = apply_filters('default_content', $post_content);
    $post->post_title = apply_filters('default_title', $post_title);
    $post->post_excerpt = apply_filters('default_excerpt', $post_excerpt);
    $post->page_template = 'default';
    $post->post_parent = 0;
    $post->menu_order = 0;
    return $post;
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:40,代码来源:admin-functions.php

示例3: get_default_post_to_edit

/**
 * Default post information to use when populating the "Write Post" form.
 *
 * @since unknown
 *
 * @return unknown
 */
function get_default_post_to_edit()
{
    if (!empty($_REQUEST['post_title'])) {
        $post_title = esc_html(stripslashes($_REQUEST['post_title']));
    } else {
        if (!empty($_REQUEST['popuptitle'])) {
            $post_title = esc_html(stripslashes($_REQUEST['popuptitle']));
            $post_title = funky_javascript_fix($post_title);
        } else {
            $post_title = '';
        }
    }
    $post_content = '';
    if (!empty($_REQUEST['content'])) {
        $post_content = esc_html(stripslashes($_REQUEST['content']));
    } else {
        if (!empty($post_title)) {
            $text = esc_html(stripslashes(urldecode($_REQUEST['text'])));
            $text = funky_javascript_fix($text);
            $popupurl = esc_url($_REQUEST['popupurl']);
            $post_content = '<a href="' . $popupurl . '">' . $post_title . '</a>' . "\n{$text}";
        }
    }
    if (!empty($_REQUEST['excerpt'])) {
        $post_excerpt = esc_html(stripslashes($_REQUEST['excerpt']));
    } else {
        $post_excerpt = '';
    }
    $post->ID = 0;
    $post->post_name = '';
    $post->post_author = '';
    $post->post_date = '';
    $post->post_date_gmt = '';
    $post->post_password = '';
    $post->post_status = 'draft';
    $post->post_type = 'post';
    $post->to_ping = '';
    $post->pinged = '';
    $post->comment_status = get_option('default_comment_status');
    $post->ping_status = get_option('default_ping_status');
    $post->post_pingback = get_option('default_pingback_flag');
    $post->post_category = get_option('default_category');
    $post->post_content = apply_filters('default_content', $post_content);
    $post->post_title = apply_filters('default_title', $post_title);
    $post->post_excerpt = apply_filters('default_excerpt', $post_excerpt);
    $post->page_template = 'default';
    $post->post_parent = 0;
    $post->menu_order = 0;
    return $post;
}
开发者ID:bluedanbob,项目名称:wordpress,代码行数:57,代码来源:post.php


注:本文中的funky_javascript_fix函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。