$smiley ) if ( in_array( $smiley, $remove_smileys ) ) unset( $wpsmiliestrans[$key] ); } /** * 保存主题版本 * * @since Unknown * @deprecated Beginning 4.0.2 Use Bing_check_db_version() * * `add_action( 'init', 'Bing_save_theme_version', 16 );` */ function Bing_save_theme_version() { _deprecated_function( __FUNCTION__, '4.0.2', 'Bing_check_db_version()' ); return Bing_check_db_version(); } /** * 文章访问计数 * * @since Unknown * @since 4.0.1 统计所有公开文章类型和文章状态的文章。 * * @deprecated Beginning 4.0.4 Use Bing_Views_Stats::stats() * * `add_action( 'template_redirect', 'Bing_post_statistics_views' );` */ function Bing_post_statistics_views() { _deprecated_function( __FUNCTION__, '4.0.4', 'Bing_Views_Stats::stats()' ); Bing_Views_Stats::init(); Bing_Views_Stats::$object->stats(); } /** * 获取计数 * * @since Unknown * @deprecated Beginning 4.0.4 Use Bing_Views_Stats::get() */ function Bing_post_views( $post = null ) { _deprecated_function( __FUNCTION__, '4.0.4', 'Bing_Views_Stats::get()' ); $views = Bing_Views_Stats::get( $post ); return number_format_i18n( $views ); } /** * 面包屑导航 * * @since Unknown * @deprecated Beginning 4.0.4 Use Bing_Breadcrumbs::output() */ function Bing_breadcrumbs( $separator = '/', $before = '
', $home = '' ) { _deprecated_function( __FUNCTION__, '4.0.4', 'Bing_Breadcrumbs::output()' ); $breadcrumbs = new Bing_Breadcrumbs( true ); $code = $breadcrumbs->get_code(); // 转换首页图标 $home = empty( $home ) ? __( '首页', 'Bing' ) : $home; $home = '' . $home . ''; // 替换首页图标 $code = preg_replace( '/