Showing 5,566 of 7,504 total issues
Function rescale
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale: function(event) {
// calculate
var width = M.min( $win.width()-40, lightbox.width ),
height = M.min( $win.height()-60, lightbox.height ),
Function save
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save : function(id) {
var params, fields, tax = $('input[name="taxonomy"]').val() || '';
if( typeof(id) == 'object' )
id = this.getId(id);
Function schedule
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+""));};var i=0;var override=false;if(typeof arguments[i]=="object"&&arguments.length>1){override=true;i++;}
if(typeof arguments[i]=="object"){for(var option in arguments[i])
if(typeof ctx[option]!="undefined")
ctx[option]=arguments[i][option];i++;}
if(typeof arguments[i]=="number"||(typeof arguments[i]=="string"&&arguments[i].match(RegExp("^[0-9]+[smhdw]$"))))
Function getShortcode
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getShortcode( content ) {
return content.replace( /<div (?:id="attachment_|class="mceTemp)[^>]*>([\s\S]+?)<\/div>/g, function( a, b ) {
var out = '';
if ( b.indexOf('<img ') === -1 ) {
Function initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function() {
var current = api.HeaderTool.currentHeader.get('choice').replace(/^https?:\/\//, ''),
isRandom = this.isRandomChoice(api.get().header_image);
// Overridable by an extending class
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render() {
if (panel) {
if (!panel.visible()) {
show();
}
Function moveForm
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
moveForm : function(commId, parentId, respondId, postId) {
var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
if ( ! comm || ! respond || ! cancel || ! parent )
return;
Function applyRatioToAxis
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},applyRatioToAxis:function(_33,_34,_35,_36){
var _37=Object.extend(_33,{});
var _38=_37.a2-_37.a1;
var _3a=Math.floor(_38*_34.b/_34.a);
var _3b;
Function rescale
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale: function(event) {
// calculate
var width = M.min( $win.width()-40, lightbox.width ),
height = M.min( $win.height()-60, lightbox.height ),
Function startDrag
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startDrag: function(event) {
if (Event.isLeftClick(event)) {
if (!this.disabled){
this.active = true;
Function bindControls
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindControls: function() {
var i;
carousel.next.on( 'click:fast', function(e) {
Function show
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.show = function () {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.data('target')
Method get_views
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_views() {
global $wp_roles, $role;
if ( $this->is_site_users ) {
$url = 'site-users.php?id=' . $this->site_id;
Method wp_dashboard_recent_drafts
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_dashboard_recent_drafts( $drafts = false ) {
if ( !$drafts ) {
$drafts_query = new WP_Query( array(
'post_type' => 'post',
'post_status' => 'draft',
Method months_dropdown
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function months_dropdown( $post_type ) {
global $wpdb, $wp_locale;
$months = $wpdb->get_results( $wpdb->prepare( "
SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
Method wp_install
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') {
global $wp_rewrite;
wp_check_mysql_version();
wp_cache_flush();
Method start_el
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
global $_nav_menu_placeholder;
$_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
$possible_object_id = isset( $item->post_type ) && 'nav_menu_item' == $item->post_type ? $item->object_id : $_nav_menu_placeholder;
Method get_default_post_to_edit
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_default_post_to_edit() {
$post_title = '';
if ( !empty( $_REQUEST['post_title'] ) )
$post_title = esc_html( stripslashes( $_REQUEST['post_title'] ));
Method wpmu_delete_user
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wpmu_delete_user( $id ) {
global $wpdb;
$id = (int) $id;
$user = new WP_User( $id );
Method link_categories_meta_box
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link_categories_meta_box($link) { ?>
<ul id="category-tabs">
<li class="tabs"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
<li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
</ul>