Opened 8 years ago

Closed 7 years ago

#53223 closed update (fixed)

Update WordPress to version 4.7

Reported by: josephsacco Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: wordpress

Description (last modified by mf2k (Frank Schima))

Attached is a Portfile to update wordpress to 4.7. I modified the wordpress@3.5 Portfile to support multiple versions of PHP with the default PHP version set to version 7.1, the current stable version.

Deciding what PHP dependencies to test for seems to be a matter of personal taste. The WordPress website is not very helpful on this issue. The minimal requirements are listed on the website as:

  • PHP 7 or greater
  • MySQL 5.6 or greater
  • The mod_rewrite Apache module
  • HTTPS support

-Joseph

Attachments (2)

Portfile (2.3 KB) - added by josephsacco 8 years ago.
Portfile
Portfile.diff (1.6 KB) - added by josephsacco 8 years ago.
Portfile diff

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by josephsacco

Attachment: Portfile added

Portfile

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Thanks. Per the guidelines, please instead attach a unified diff of the Portfile so we can easily see what changes you are proposing.

Changed 8 years ago by josephsacco

Attachment: Portfile.diff added

Portfile diff

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: haspatch added

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Given the requirement for php 7 or higher, why is your patch adding php 5.x variants?

comment:4 Changed 8 years ago by josephsacco

I merely included the php-xxxxxxxx dependencies that were already there. As I mentioned previously, the choice of dependencies is a matter of personal taste. Ubuntu 16.04 uses: php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc

Fedora 25 uses: php-PHPMailer php-ctype php-curl php-date php-dom php-exif php-fileinfo php-filter php-ftp php-gd php-getid3 php-gettext php-hash php-iconv php-json php-libxml php-mbstring php-mysqli php-openssl php-pcre php-posix php-simplepie >= 1.3.1 php-simplexml php-sockets php-spl php-tokenizer php-xml php-zip php-zlib

-Joseph

comment:5 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to mf2k
Resolution: fixed
Status: newclosed

In 8a5d39f171cb9d800b22c7e22c8ebda96b6c1e5e/macports-ports:

wordpress:

  • Update to version 4.7
  • Remove non-existant dependencies
  • Add variants for php55 php56 php70 and php71

Closes: #45639
Closes: #53223
Closes: #54284
See: #53522

Note: See TracTickets for help on using tickets.