• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP funky_javascript_fix函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP fusion_get_option函数代码示例发布时间:2022-05-15
下一篇:
PHP fusion_get_enabled_languages函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap