
了解数据库技术:SQLite与MySQL的比较
paused_themes_notice ( No parameters )
paused_themes_notice: 这个函数生成一个通知,告知用户某些主题已经暂停。它不接受任何参数。
在一些主题因错误而暂停的情况下,发出管理员通知。
function paused_themes_notice() { if ( 'themes.php' === $GLOBALS['pagenow'] ) { return; } if ( ! current_user_can( 'resume_themes' ) ) { return; } if ( ! isset( $GLOBALS['_paused_themes'] ) || empty( $GLOBALS['_paused_themes'] ) ) { return; } printf( '<div class="notice notice-error"><p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p></div>', __( 'One or more themes failed to load properly.' ), __( 'You can find more details and make changes on the Themes screen.' ), esc_url( admin_url( 'themes.php' ) ), __( 'Go to the Themes screen' ) ); }