Showing 5,566 of 7,504 total issues
Method wp_explain_nonce
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_explain_nonce( $action ) {
if ( $action !== -1 && preg_match( '/([a-z]+)-([a-z]+)(_(.+))?/', $action, $matches ) ) {
$verb = $matches[1];
$noun = $matches[2];
Function $Browser
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.$Browser = function() {
var self = this;
this.isMock = true;
self.$$url = "http://server/";
Function User
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var User = (function () {
function User(accountId) {
var cookie = ApplicationInsights.Util.getCookie(User.userCookieName);
if (cookie) {
var params = cookie.split(User.cookieSeparator);
Function run
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
run: function( deferred ) {
var self = this,
loaded = false,
ready = false;
Function open
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open : function(id, p, a) {
var t = this, editRow, rowData, act, h, c = $('#comment-' + id);
t.close();
t.cid = id;
Function prepareMediaItemInit
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareMediaItemInit(fileObj) {
var item = jQuery('#media-item-' + fileObj.id);
// Clone the thumbnail as a "pinkynail" -- a tiny image to the left of the filename
jQuery('.thumbnail', item).clone().attr('className', 'pinkynail toggle').prependTo(item);
Method privAddFileUsingTempFile
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options)
{
$v_result=PCLZIP_ERR_NO_ERROR;
// ----- Working variable
Method edit_post
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function edit_post( $post_data = null ) {
if ( empty($post_data) )
$post_data = &$_POST;
Method parselisting
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parselisting($line) {
static $is_windows;
if ( is_null($is_windows) )
$is_windows = strpos( strtolower(ftp_systype($this->link)), 'win') !== false;
Method media_upload_form_handler
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function media_upload_form_handler() {
check_admin_referer('media-form');
$errors = null;
Method wp_comment_reply
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true) {
global $current_user;
// allow plugin to replace the popup content
$content = apply_filters( 'wp_comment_reply', '', array('position' => $position, 'checkbox' => $checkbox, 'mode' => $mode) );
Method prepare_items
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepare_items() {
global $post_id, $comment_status, $search, $comment_type;
$comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
if ( !in_array( $comment_status, array( 'all', 'moderated', 'approved', 'spam', 'trash' ) ) )
Method wp_restore_image
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_restore_image($post_id) {
$meta = wp_get_attachment_metadata($post_id);
$file = get_attached_file($post_id);
$backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true );
$restored = false;
Method image_edit_apply_changes
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function image_edit_apply_changes($img, $changes) {
if ( !is_array($changes) )
return $img;
Method confirm_delete_users
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function confirm_delete_users( $users ) {
$current_user = wp_get_current_user();
if ( !is_array( $users ) )
return false;
?>
Method wp_delete_post
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_delete_post( $postid = 0, $force_delete = false ) {
global $wpdb, $wp_rewrite;
if ( !$post = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d", $postid)) )
return $post;
Method tag_open
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function tag_open($parser, $tag, $attributes)
{
list($this->namespace[], $this->element[]) = $this->split_ns($tag);
$attribs = array();
Method SimplePie_Cache_MySQL
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SimplePie_Cache_MySQL($mysql_location, $name, $extension)
{
$host = $mysql_location->get_host();
if (SimplePie_Misc::stripos($host, 'unix(') === 0 && substr($host, -1) === ')')
{
Method _walk_bookmarks
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _walk_bookmarks($bookmarks, $args = '' ) {
$defaults = array(
'show_updated' => 0, 'show_description' => 0,
'show_images' => 1, 'show_name' => 0,
'before' => '<li>', 'after' => '</li>', 'between' => "\n",
File handlers.dev.js
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
function fileDialogStart() {
jQuery("#media-upload-error").empty();
}