Showing 5,566 of 7,504 total issues
Method wp_ajax_delete_comment
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_delete_comment() {
$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;
if ( !$comment = get_comment( $id ) )
wp_die( time() );
Method wp_ajax_autocomplete_user
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_autocomplete_user() {
if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) )
wp_die( -1 );
/** This filter is documented in wp-admin/user-new.php */
Method add_js
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_js() {
?>
<script type="text/javascript">
//<![CDATA[
function GetElementsWithClassName(elementName, className) {
Method bail_on_activation
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function bail_on_activation( $message, $deactivate = true ) {
?>
<!doctype html>
<html>
<head>
Method wp_getComments
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getComments($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];
Method create_attachment
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create_attachment() {
$type = $this->get_accepted_content_type();
if(!current_user_can('upload_files'))
Method mt_getRecentPostTitles
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mt_getRecentPostTitles($args) {
$this->escape($args);
$blog_ID = (int) $args[0];
Method parseCUESHEET
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseCUESHEET($BlockData) {
$info = &$this->getid3->info;
$offset = 0;
$info['flac']['CUESHEET']['media_catalog_number'] = trim(substr($BlockData, $offset, 128), "\0");
$offset += 128;
Method is_term
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function is_term($term, $taxonomy = '', $parent = 0) {
global $wpdb;
$select = "SELECT term_id FROM $wpdb->terms as t WHERE ";
$tax_select = "SELECT tt.term_id, tt.term_taxonomy_id FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy as tt ON tt.term_id = t.term_id WHERE ";
Method iconv_fallback
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function iconv_fallback($in_charset, $out_charset, $string) {
if ($in_charset == $out_charset) {
return $string;
}
Method get_children
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function &get_children($args = '', $output = OBJECT) {
$kids = array();
if ( empty( $args ) ) {
if ( isset( $GLOBALS['post'] ) ) {
$args = array('post_parent' => (int) $GLOBALS['post']->post_parent );
Method get_title
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_title()
{
if (!isset($this->data['title']))
{
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
Method date_rfc850
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function date_rfc850($date)
{
static $pcre;
if (!$pcre)
{
Method shortcode
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function shortcode( $attr, $url = '' ) {
$post = get_post();
if ( empty( $url ) )
return '';
Method get_title
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_title()
{
if (!isset($this->data['title']))
{
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
Method date_rfc850
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function date_rfc850($date)
{
static $pcre;
if (!$pcre)
{
Method unknown
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function unknown()
{
$ws = strspn($this->file->body, "\x09\x0A\x0B\x0C\x0D\x20");
if (strtolower(substr($this->file->body, $ws, 14)) === '<!doctype html'
|| strtolower(substr($this->file->body, $ws, 5)) === '<html'
Method get_links
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_links()
{
$links = SimplePie_Misc::get_element('a', $this->file->body);
foreach ($links as $link)
{
Method __construct
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function __construct( $data, $requested_url = '' ) {
if ( $requested_url )
$arrURL = @parse_url( $requested_url );
if ( isset( $arrURL['host'] ) )
$this->domain = $arrURL['host'];
Method set_transient
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function set_transient( $transient, $value, $expiration = 0 ) {
/**
* Filter a specific transient before its value is set.
*