Showing 7,504 of 7,504 total issues
Method _get_list_table
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _get_list_table( $class, $args = array() ) {
$core_classes = array(
//Site Admin
'WP_Posts_List_Table' => 'posts',
'WP_Media_List_Table' => 'media',
Method extra_tablenav
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extra_tablenav( $which ) {
global $comment_status, $comment_type;
?>
<div class="alignleft actions">
<?php
Method import_tags
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function import_tags ( ) {
echo '<div class="narrow">';
echo '<p><h3>'.__('Reading UTW Tags…').'</h3></p>';
$tags = $this->get_utw_tags();
Method link_advanced_meta_box
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link_advanced_meta_box($link) {
?>
<table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
<tr class="form-field">
<th valign="top" scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
Method add_menu_classes
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_menu_classes($menu) {
$first = $lastorder = false;
$i = 0;
$mc = count($menu);
Method cat2wp
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cat2wp($categories='')
{
// General Housekeeping
global $wpdb;
$count = 0;
Method blogger_newPost
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blogger_newPost($args) {
$this->escape($args);
$blog_ID = (int) $args[1]; /* though we don't use it yet */
Method display_start_page
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function display_start_page() {
if ( isset( $_GET['action'] ) ) {
if ( $_GET['action'] == 'delete-key' ) {
if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], self::NONCE ) )
delete_option( 'wordpress_api_key' );
Method twentyfourteen_list_authors
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentyfourteen_list_authors() {
$contributor_ids = get_users( array(
'fields' => 'ID',
'orderby' => 'post_count',
'order' => 'DESC',
Method get_featured_post_ids
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function get_featured_post_ids() {
// Return array of cached results if they exist.
$featured_ids = get_transient( 'featured_content_ids' );
if ( ! empty( $featured_ids ) ) {
return array_map( 'absint', (array) $featured_ids );
Method rightnow_stats
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function rightnow_stats() {
global $submenu, $wp_db_version;
if ( 8645 < $wp_db_version ) // 2.7
$link = add_query_arg( array( 'comment_status' => 'spam' ), admin_url( 'edit-comments.php' ) );
Method twentyfourteen_customize_register
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentyfourteen_customize_register( $wp_customize ) {
// Add custom description to Colors and Background sections.
$wp_customize->get_section( 'colors' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
$wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
Method wp_getUsersBlogs
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getUsersBlogs( $args ) {
// If this isn't on WPMU then just use blogger_getUsersBlogs
if ( !is_multisite() ) {
array_unshift( $args, 1 );
return $this->blogger_getUsersBlogs( $args );
Method wp_delete_comment
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_delete_comment($comment_id) {
global $wpdb;
if (!$comment = get_comment($comment_id))
return false;
Method blogger_editPost
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blogger_editPost($args) {
$this->escape($args);
$post_ID = (int) $args[1];
Method get_term_link
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_term_link( $term, $taxonomy ) {
global $wp_rewrite;
if ( !is_object($term) ) {
if ( is_int($term) ) {
Method RecursiveFrameScanning
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function RecursiveFrameScanning(&$offset, &$nextframetestoffset, $ScanAsCBR) {
$info = &$this->getid3->info;
$firstframetestarray = array('error'=>'', 'warning'=>'', 'avdataend'=>$info['avdataend'], 'avdataoffset'=>$info['avdataoffset']);
$this->decodeMPEGaudioHeader($offset, $firstframetestarray, false);
Method GenerateID3v1Tag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function GenerateID3v1Tag($title, $artist, $album, $year, $genreid, $comment, $track='') {
$ID3v1Tag = 'TAG';
$ID3v1Tag .= str_pad(trim(substr($title, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
$ID3v1Tag .= str_pad(trim(substr($artist, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
$ID3v1Tag .= str_pad(trim(substr($album, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
Method test
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function test( $args = array() ) {
// First, test Imagick's extension and classes.
if ( ! extension_loaded( 'imagick' ) || ! class_exists( 'Imagick' ) || ! class_exists( 'ImagickPixel' ) )
return false;
Method wp_kses_split2
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_kses_split2($string, $allowed_html, $allowed_protocols) {
$string = wp_kses_stripslashes($string);
if (substr($string, 0, 1) != '<')
return '>';