Skip to main content

Notes on learning WordPress

    Finally I finished study the book :

    Here are some notes I’d like to share during study:

  • I was using IIS+PHP. Windows Active Directory is sophisticated. Make sure WordPress was granted to use its own folder. “Application pool” authentication is effective.
By default is IUSR. I couldn’t see uploaded-pictures’ thumbnails, even when I granted “Everyone/ full control” on a specific picture. Then I removed inherited-hierarchy, and lost the right to delete it, even with admin rights.
 
  • PHP module gd2
After correcting authentication, the functionality “Edit Image” on WordPress still didn’t work. I validated minimum required modules while installing PHP. Maybe most developers validated the gd2 (JPEG related) module. It took me quite a long to find out my server needs gd2.
 
  • wp_enqueue_script

Developers use wp_enqueue_script() to ask WordPress to load external scripts. But it didn’t work directly on my server. After research, I found the working version is :
wp_register_script()
wp_enqueue_script()
Also, I found tjat deregistering already included script and then enqueueing a new one needs no wp_register_script. I deregistered default jquery 1.14 and then included current jquery 3.5.
wp_deregister_script()
wp_enqueue_script()
 
 
  • Naming convention 
This part is more troublesome. WordPress seems not documenting well… Maybe its complexity and legacy make keeping documentation difficult. Out-dated documentation is very common in IT. This is not a serious problem, but sometimes annoying when searching for help. 


   I didn't really complete the book. The final 10% was glanced through, which was focused on taking over taxonomy. I guessed the author knew WordPress as well as a developer in WordPress team. But I don't need to. My aim is to know how WordPress was designed, not mastering on implementing the system. There is not much about Bootstrap. Bootstrap's documentation is a good reference. 


    WordPress is a open-sourced project, but it has enough financial support to keep a development team. I also found a side-product: theme forest https://themeforest.net/ , which sells theme designs. I'm curious about a open-source team's long-life. Here are my guesses:
 
  • Open-source project could be the base of a commercial product. If the commercial solution succeeds, the enterprise has good intentions to support the open-source team. The enterprise may choose to buy out the development team or just 'rent' it. 

  • The open-source team may establish another team to sell the enhanced, profitable version of the current open-source project and pay back to support the team. Or

  • an enterprise may open-up its internal start-up as an open-source team and develop professional products over it. 
    I also created a video clip to share my notes and a short record on trying the task on the book. It is not a tutorial. When I searched for solutions online, I found more video sources on big-topic such as AD, SSIS. And .... never saw a video clip from my ....similarity ? criteria? (I tried to avoid a specific word.... )So I created one. 


Comments

Popular posts from this blog

Bookmark service (MongoDB & Spring REST) -2/2

    I accidentally deleted my development VM. I got lucky having the habit of taking notes. This blog is useful. Development VM is doom to be lost. Rebuild it waste time, but having a clean slate is refreshing~. What concerns me more is my AWS free quota this month is reaching 85%. The second VM I launched but never being used might be the one to blame. (Of course, my mistake.) I terminated the wrong VM. Now I got Linux 2 built. Great, just threw away everything happened on AMI.  1st layer: Page Page class   Originally, I need to prepare getter/setter for all class properties for Spring. By using lombok, I only need to create constructors. lombok will deal with getter/setter and toString(). But there are chances to call getter/setter, but how? .......Naming convention.... Capitalize the 1st character with the prefix get/set.  Annotation @Data was used on this class.  Repository class Spring Docs: Repository https://docs.spring.io/spring-data/mongodb/docs/3.0.0.RELEASE/reference/html/#m

Comments for my Server/Client Web API samples

        Finally, I finished the comments for python/07 and 09 projects. I almost forgot to put the date on source code which is used to note how long it took me. Not precisely in hours….. I didn’t include source code in my previous post. If choosing code-section for this post…… maybe I want to mark out my comment….. (Really?!)          Once my work was developing websites for enterprises, including ERP, CRM or content sites. The sustainability of network and security are important issues. There are 2 methods for HTML Form submission: GET and POST. Submit via POST is secure, compared to GET which piles parameters on URL. RESTful API is mainly using GET.         Yup, even if you have a certification key, if you put the value on the URL, it is visible data. When writing socket-communication, client-server sockets are a pair; both follow the agreement on commands and structures; and there are countless ports for usage. Plain text on the message of socket communication usually wouldn’t be

Built LAMP on AWS AMI, and update/install Python3.6, pip v20, Apache wsgi and Flask

I got one half day free and I spent it on building a LAMP on AWS AMI. I also wanted to squeeze Flask into Apache. So I also install/update Python 3.6, pip V.20.1, Apache wsgi and Flask. I wrapped up progress for now before I forgot all resources.    On AWS marketplace, everyone can pay for a good suit such as Django. I’m not interested in content creation unless there are interesting topics to resolve. I don’t know what left to do if I bought a solution; and I may get annoyed like everyone else if the solution causes more problems. To build on my own is more realistic and practical. Installing a LAMP (Linux, Apache, MySQL, PHP) was smooth while following AWS tutorial. Tutorial: Install a LAMP Web Server with the Amazon Linux AMI https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html To build Flask is absolutely a different thing….  still failed before I fell asleep... If I choose AWS EC2 Ubuntu instance, most tutorials are based on this Linux version. Unfortunately I oft