Upgrade to Pro — share decks privately, control downloads, hide ads and more …

March 2017 Meetup - How to Contribute to WordPr...

March 2017 Meetup - How to Contribute to WordPress Core"

Tweet

More Decks by Ahmedabad WordPress Meetup

Other Decks in Programming

Transcript

  1. How to Contribute to WordPress Core WordPress Ahmedabad Meet Up

    Chetan Satasiya – SatasiyaChetan Sr. WordPress Devloper Multidots Solutions Pvt Ltd WordPress Translation Editor, Core Contributor, BuddyPress Core Contributor
  2. Agenda •Introduction •Fun facts about WordPress Core •Prerequisites •Different types

    of contribution •Where to find the tickets? •How to create a patch? •How to submit a patch? •How to setup local environment?
  3. Introduction •Joy of giving back to community •Use your best

    skill to make WordPress Core better •Make presence of yours worldwide among community and community people •Appreciation badge •Profile and career boost up
  4. Fun Facts about WordPress core contribution during 2017 •53+ commits

    •200+ contributors •101+ tickets created •40+ tickets reopened •48+ tickets closed
  5. Prerequisites •Must have WordPress.Org account •https://profiles.wordpress.org/ketuchetan •Must have slack account

    •https://make.wordpress.org/chat/ • Read Core Contributor Handbook carefully •https://make.wordpress.org/core/handbook/ •Strictly Follow WordPress Coding Standards •https://codex.wordpress.org/WordPress_Coding_Sta ndards •Familiar with WordPress codebase •https://make.wordpress.org/core/handbook/contribu te/codebase/
  6. Different types of core Contribution • Development (of course) •

    QA • Documentation • Ideas and Opinions • User Experience • Graphic Design • Accessibility • Usability Testing
  7. Where To Find Tickets •Good First Bugs [https://core.trac.wordpress.org/tickets/good-first-bugs ] •No

    Patch [ https://core.trac.wordpress.org/tickets/no-patch ] •Needs Unit Tests [https://core.trac.wordpress.org/tickets/needs-unit-tests ] •Next Major and Next Minor Release [https://core.trac.wordpress.org/tickets/major/workflow ] •Bug Reports [ https://make.wordpress.org/core/reports/ ] •Ask In Slack #core [ https://make.wordpress.org/chat/ ]
  8. Creating a Patch •Now it’s review time… •You’ve developed and

    tested your changes and are now ready to pass your changes back to the WordPress Core team for reviewing and testing. How do you do that? •So to create your patch file and upload to that particular ticket.
  9. Submit The Patch Make sure you’re logged in to wordpress.org,

    navigate to the ticket in question. You should find an Attachments block nestled between the main description block and the Change History.
  10. Submit The Patch(2) In the Attachments block there is an

    “Attach file” button which leads you to a page where you can choose your file to upload and give a brief description.
  11. Modify The Ticket Near the bottom of the WordPress Core

    ticket you’ve been working on, you should see a Modify Ticket block.
  12. * How to setup local environment? • Open Command prompt

    and go to c://wamp/www and then add this command • svn co https://develop.svn.wordpress.org/trunk wordpress-core • Download node.js using this link: • https://nodejs.org/en/ (Current version) and Install it • Close the command prompt and open it again and then go to • c://wamp/www/wordpress-core • Now, Use this command to install all node.js module • "npm install" • Now, Use this command to activate grunt • npm install -g grunt-cli • Now, Use this command to create build directory of WordPress • grunt
  13. * How to setup local environment? • Now, create the

    "wp-config.php" file and enter the DB details to wordpress-core folder. • Now, create the "wp-tests-config.php" file and enter the DB details to wordpress-core folder. • Now go to "C:\wamp\bin\apache\apache2.4.9\conf\extra" and open "httpd-vhosts.conf" file and add below code at the end of file. • <VirtualHost *:80> • ServerAdmin [email protected] • DocumentRoot "C:\wamp\www\wordpress-core\build" • ServerName wordpresscore.local • <Directory C:\wamp\www\wordpress-core\build> • AllowOverride All • Order Deny,Allow • Allow from all • </Directory> • </VirtualHost>
  14. * How to setup local environment? • Now go to

    "C:\wamp\bin\apache\apache2.4.9\conf\original" and open "httpd.conf" file and remove # before "Include conf/extra/httpd-vhosts.conf" line. • Now go to "C:\Windows\System32\drivers\etc" and open "hosts" file as administrator and add below code at the end of the file. • 127.0.0.1 wordpresscore.local • Now, Restart Wamp server and enjoy Core contribution... :)
  15. That’s It •Now it’s done so, rather get successes or

    failures, and genuinely found it to be rewarding. With each little contribution we’re helping to nudge WordPress forward a tiny bit. •So, just Get Involved!