Bulk_Theme_Upgrader_Skin{}

WordPress主题升级的批量主题升级程序皮肤。

说明

另请参见

方法

姓名说明
Bulk_Theme_Upgrader_Skin::添加字符串
Bulk_Theme_Upgrader_Skin::之后
Bulk_Theme_Upgrader_Skin::之前
Bulk_Theme_Upgrader_Skin::Bulk_footer

来源

类Bulk_Theme_Upgrader_Skin扩展Bulk_Upgrader_Skin{/***主题信息。**Theme_Upgrader::bulk_upgrade()方法将填充此内容*使用从Theme_Upgrader::Theme_info()方法检索到的信息,*它反过来调用wp_get_theme()函数。**@var WP_Theme | false主题的信息对象,或false。*/public$theme_info=false;公共函数add_strings(){父项::add_strings();/*翻译人员:1:主题名称,2:主题编号,3:正在更新的主题总数*/$this->upgrader->strings['skin_before_update_header']=__('更新主题%1$s(%2$d/%3$d)');}/***@param string$title*/之前的公共函数($title=''){父级::before($this->theme_info->display('Name'));}/***@param string$title*/($title='')之后的公共函数{父级::之后($this->theme_info->display('Name'));$this->decrement_update_count(“主题”);}/***/公共函数bulk_footer(){父级::bulk_footer();$update_actions=数组('themes_page'=>冲刺('<a href=“%s”target=“_parent”>%s</a>',self_admin_url('themes.php'),__('转到主题页')),“updates_page”=>sprintf('<a href=“%s”target=“_parent”>%s</a>',self_admin_url('update-core.php'),__('转到WordPress更新页面')),);if(!current_user_can('switch_themes')&&!current_user_can('编辑主题选项'){unset($update_actions['themes_page']);}/***过滤批量主题更新后可用的操作链接列表。**@自3.0.0起**@param string[]$update_actions主题操作链接数组。*上次更新主题的@param WP_Theme$Theme_info主题对象。*/$update_actions=apply_filters('update_bulk_theme_complete_actions',$update_actions,$this->theme_info);if(!空($update_actions)){$this->反馈(内爆('|',(数组)$update_actions));}}}

变更日志

版本说明
4.6.0从wp-admin/includs/class-wp-upgrader-skins.php移到自己的文件中。
3.0.0介绍。

用户贡献的笔记

你必须登录在能够发表注释或反馈之前。