error[] = '' . __( 'REQUIRED', 'theme-check').': ' . sprintf( __( 'The theme uses the %s function, which is plugin-territory functionality.', 'theme-check' ), '' . esc_html( $function ) . '()' ) ; $ret = false; } } // Shortcodes can't be used in the post content, so warn about them. if ( false !== strpos( $php, 'add_shortcode' ) ) { checkcount(); $this->error[] = '' . __( 'WARNING', 'theme-check').': ' . sprintf( __( 'The theme uses the %s function. Custom post-content shortcodes are plugin-territory functionality.', 'theme-check' ), 'add_shortcode()' ) ; $ret = false; } return $ret; } function getError() { return $this->error; } } $themechecks[] = new Plugin_Territory;