Showing 5,566 of 7,504 total issues
Method wp_ajax_add_meta
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_add_meta() {
check_ajax_referer( 'add-meta', '_ajax_nonce-add-meta' );
$c = 0;
$pid = (int) $_POST['post_id'];
$post = get_post( $pid );
File custom-background.php
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* The custom background script.
*
* @package WordPress
Function sendHttp
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sendHttp(config) {
config.method = config.method || 'POST';
config.headers = config.headers || {};
config.transformRequest = config.transformRequest || function (data, headersGetter) {
if (window.ArrayBuffer && data instanceof window.ArrayBuffer) {
Function sendHttp
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sendHttp(config) {
config.method = config.method || 'POST';
config.headers = config.headers || {};
config.transformRequest = config.transformRequest || function (data, headersGetter) {
if (window.ArrayBuffer && data instanceof window.ArrayBuffer) {
Function init
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function(ed, url) {
var t = this;
t.url = url;
t._createButtons();
Method privCalculateStoredFilename
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privCalculateStoredFilename(&$p_filedescr, &$p_options)
{
$v_result=1;
// ----- Working variables
Method prepare_items
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepare_items() {
global $s, $mode, $wpdb;
$current_site = get_current_site();
Method display_rows
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function display_rows() {
global $cat_id;
$alt = 0;
Method auto_check_comment
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function auto_check_comment( $commentdata ) {
self::$last_comment_result = null;
$comment = $commentdata;
Method sanitize_option
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sanitize_option($option, $value) {
switch ($option) {
case 'admin_email':
$value = sanitize_email($value);
Consider simplifying this complex logical expression. Open
Open
if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) {
// found a comma that is not inside a string, array, etc.,
// OR we've reached the end of the character list
$slice = substr($chrs, $top['where'], ($c - $top['where']));
array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false));
Function table_hotkeys
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.table_hotkeys = function(table, keys, opts) {
opts = $.extend($.table_hotkeys.defaults, opts);
var selected_class, destructive_class, set_current_row, adjacent_row_callback, get_adjacent_row, adjacent_row, prev_row, next_row, check, get_first_row, get_last_row, make_key_callback, first_row;
selected_class = opts.class_prefix + opts.selected_suffix;
Method extract
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extract()
{
$v_result=1;
// ----- Reset the error handler
Method privFileDescrParseAtt
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requested_options=false)
{
$v_result=1;
// ----- For each file in the list check the attributes
Method wp_widget_control
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_widget_control( $sidebar_args ) {
global $wp_registered_widgets, $wp_registered_widget_controls, $sidebars_widgets;
$widget_id = $sidebar_args['widget_id'];
$sidebar_id = isset($sidebar_args['id']) ? $sidebar_args['id'] : false;
Method _cat_row
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _cat_row( $category, $level, $name_override = false ) {
static $row_class = '';
$category = get_category( $category, OBJECT, 'display' );
Method wp_ajax_replyto_comment
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_replyto_comment( $action ) {
global $wp_list_table, $wpdb;
if ( empty( $action ) )
$action = 'replyto-comment';
File Locator.php
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* SimplePie
*
* A PHP-Based RSS and Atom Feed Framework.
Function addMethods
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.addMethods = function(methods) {
var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag;
if (!methods) {
Object.extend(Form, Form.Methods);
Function updateText
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateText() {
var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
optPublish = $('option[value=publish]', postStatus), aa = $('#aa').val(),
mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();