Giter Site home page Giter Site logo

newfold-labs / wp-module-onboarding Goto Github PK

View Code? Open in Web Editor NEW
14.0 12.0 6.0 68.76 MB

Next-generation WordPress Onboarding via Newfold Module

License: GNU General Public License v2.0

PHP 13.60% JavaScript 71.26% SCSS 15.07% Mustache 0.02% CSS 0.03%
wordpress wp-admin wp-scripts press-2 wp-module

wp-module-onboarding's Introduction

Newfold Logo

wp-module-onboarding WordPress Module

Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.

Installation

1. Add the Bluehost Satis to your composer.json.

composer config repositories.bluehost composer https://bluehost.github.io/satis

2. Require the newfold-labs/wp-module-onboarding package.

composer require newfold-labs/wp-module-onboarding

Usage

More on NewFold WordPress Modules

wp-module-onboarding's People

Contributors

0averyan avatar abhijitb avatar ajayadav09 avatar arunshenoy99 avatar aulisius avatar avneet-raj avatar circlecube avatar desrosj avatar diwanshuster avatar earnjam avatar girish-lokapure avatar mamatharao05 avatar mr-vara avatar officiallygod avatar page-source avatar sangeetha-nayak avatar wpscholar avatar yashita101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-module-onboarding's Issues

Add cypress tests

Tests from the bluehost plugin that test components from this module should be added to this module.

More tests should be written to verify that the components properly render in the plugin and function. These should be universal tests that can pass no matter which brand plugin runs them. Use cypress environment variables to enable this.

Refer to this task for more information: bluehost/bluehost-wordpress-plugin#594

Update tests to pass for HostGator

This module is integrated with the Hostgator plugin, but only the BR region. Currently the module tests are skipped due to this restriction on region.

We've added a setRegion and setLanguage command for cypress. See them in use here: wp-plugin-hostgator/tests/cypress/integration/language.cy.js

Let's get the onboarding tests updated so they can pass in hostgator. This may take some special care as the tests look like they are expecting english content, so they may need updating to support multi-lingual philosophy. We can check for attributes and that sections exist rather than that the content is in english for example.

Fix deprecation warning in PHP 8.1+

PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-content/plugins/bluehost-wordpress-plugin/vendor/newfold-labs/wp-module-onboarding/includes/RestApi/RestApiFilter.php on line 134

The code in question looks to be:

public static function is_request_from_onboarding_flow( \WP_REST_Request $request ) {
	return false !== stripos( $request->get_header( 'referer' ), 'page=nfd-onboarding' );
}

which could change to something like:

public static function is_request_from_onboarding_flow( \WP_REST_Request $request ) {
	if ( !$request->get_header('referer') ) {
                 return false;
	} else {
		return false !== stripos( $request->get_header( 'referer' ), 'page=nfd-onboarding' );
	}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.