From cc7bdefab7ca5ffe696d33e1f0160a6f881f1c62 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 3 Sep 2016 08:50:49 +0200 Subject: [PATCH 1/9] =?UTF-8?q?WordPress=204.6=20=E2=80=9CPepper=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + sources | 2 +- wordpress-4.5-noupdate.patch | 108 ----------------------------------- wordpress-4.6-noupdate.patch | 103 +++++++++++++++++++++++++++++++++ wordpress.spec | 30 ++++++---- 5 files changed, 125 insertions(+), 120 deletions(-) delete mode 100644 wordpress-4.5-noupdate.patch create mode 100644 wordpress-4.6-noupdate.patch diff --git a/.gitignore b/.gitignore index a86355c..7ab8d07 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ clog /wordpress-4.5.1.tar.gz /wordpress-4.5.2.tar.gz /wordpress-4.5.3.tar.gz +/wordpress-debian_patches_hello.patch +/wordpress-4.6.tar.gz diff --git a/sources b/sources index 6f22991..e275cdf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6cd70fcceb7050bfe22fc03e801e0305 wordpress-4.5.3.tar.gz +b07bb75bb0f85fd6e1a65ad3d0b876d8 wordpress-4.6.tar.gz diff --git a/wordpress-4.5-noupdate.patch b/wordpress-4.5-noupdate.patch deleted file mode 100644 index f4a64c5..0000000 --- a/wordpress-4.5-noupdate.patch +++ /dev/null @@ -1,108 +0,0 @@ -diff -up wordpress/wp-admin/includes/admin-filters.php.orig wordpress/wp-admin/includes/admin-filters.php ---- wordpress/wp-admin/includes/admin-filters.php.orig 2015-10-15 00:35:24.000000000 +0200 -+++ wordpress/wp-admin/includes/admin-filters.php 2015-12-09 17:08:00.945112230 +0100 -@@ -100,7 +100,6 @@ add_action( 'profile_update', 'default_p - add_action( 'admin_init', 'wp_plugin_update_rows' ); - add_action( 'admin_init', 'wp_theme_update_rows' ); - --add_action( 'admin_notices', 'update_nag', 3 ); - add_action( 'admin_notices', 'maintenance_nag', 10 ); - - add_filter( 'update_footer', 'core_update_footer' ); -diff -up wordpress/wp-admin/includes/class-wp-upgrader.php.orig wordpress/wp-admin/includes/class-wp-upgrader.php ---- wordpress/wp-admin/includes/class-wp-upgrader.php.orig 2015-11-16 03:47:25.000000000 +0100 -+++ wordpress/wp-admin/includes/class-wp-upgrader.php 2015-12-09 17:09:34.735571806 +0100 -@@ -2465,6 +2465,9 @@ class Core_Upgrader extends WP_Upgrader - } - } - -+ // RPM: nether allow core update -+ return false; -+ - // 1: If we're already on that version, not much point in updating? - if ( $offered_ver == $wp_version ) - return false; -@@ -2706,7 +2709,7 @@ class WP_Automatic_Updater { - */ - public function is_disabled() { - // Background updates are disabled if you don't want file changes. -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) - return true; - - if ( wp_installing() ) -diff -up wordpress/wp-admin/includes/update.php.orig wordpress/wp-admin/includes/update.php ---- wordpress/wp-admin/includes/update.php.orig 2015-12-09 17:08:00.946112235 +0100 -+++ wordpress/wp-admin/includes/update.php 2015-12-09 17:10:27.642831054 +0100 -@@ -251,7 +251,7 @@ function update_right_now_message() { - $cur = get_preferred_from_update_core(); - - if ( isset( $cur->response ) && $cur->response == 'upgrade' ) -- $msg .= '' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . ' '; -+ $msg .= ''; - } - - /* translators: 1: version number, 2: theme name */ -diff -up wordpress/wp-includes/capabilities.php.orig wordpress/wp-includes/capabilities.php ---- wordpress/wp-includes/capabilities.php.orig 2015-11-29 03:27:18.000000000 +0100 -+++ wordpress/wp-includes/capabilities.php 2015-12-09 17:08:00.946112235 +0100 -@@ -310,7 +310,7 @@ function map_meta_cap( $cap, $user_id ) - // Disallow the file editors. - if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) - $caps[] = 'do_not_allow'; -- elseif ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) -+ elseif ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) - $caps[] = 'do_not_allow'; - elseif ( is_multisite() && ! is_super_admin( $user_id ) ) - $caps[] = 'do_not_allow'; -@@ -328,7 +328,7 @@ function map_meta_cap( $cap, $user_id ) - case 'update_core': - // Disallow anything that creates, deletes, or updates core, plugin, or theme files. - // Files in uploads are excepted. -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { - $caps[] = 'do_not_allow'; - } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) { - $caps[] = 'do_not_allow'; -diff -up wordpress/wp-includes/update.php.orig wordpress/wp-includes/update.php ---- wordpress/wp-includes/update.php.orig 2015-12-06 16:44:27.000000000 +0100 -+++ wordpress/wp-includes/update.php 2015-12-09 17:12:09.038327895 +0100 -@@ -653,9 +653,6 @@ function _maybe_update_themes() { - * @since 3.1.0 - */ - function wp_schedule_update_checks() { -- if ( ! wp_next_scheduled( 'wp_version_check' ) && ! wp_installing() ) -- wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); -- - if ( ! wp_next_scheduled( 'wp_update_plugins' ) && ! wp_installing() ) - wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); - -@@ -683,8 +680,6 @@ if ( ( ! is_main_site() && ! is_network_ - } - - add_action( 'admin_init', '_maybe_update_core' ); --add_action( 'wp_version_check', 'wp_version_check' ); --add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 ); - - add_action( 'load-plugins.php', 'wp_update_plugins' ); - add_action( 'load-update.php', 'wp_update_plugins' ); ---- wordpress/wp-admin/includes/translation-install.php.orig 2016-03-25 14:48:58.616147092 +0100 -+++ wordpress/wp-admin/includes/translation-install.php 2016-03-25 14:50:43.841612441 +0100 -@@ -181,7 +181,7 @@ function wp_download_language_pack( $dow - return $download; - } - -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { - return false; - } - -@@ -224,7 +224,7 @@ function wp_download_language_pack( $dow - * @return bool Returns true on success, false on failure. - */ - function wp_can_install_language_pack() { -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { - return false; - } - diff --git a/wordpress-4.6-noupdate.patch b/wordpress-4.6-noupdate.patch new file mode 100644 index 0000000..0038d1e --- /dev/null +++ b/wordpress-4.6-noupdate.patch @@ -0,0 +1,103 @@ +diff -up wordpress/wp-admin/includes/admin-filters.php.rpm wordpress/wp-admin/includes/admin-filters.php +--- wordpress/wp-admin/includes/admin-filters.php.rpm 2016-09-03 07:50:51.812312381 +0200 ++++ wordpress/wp-admin/includes/admin-filters.php 2016-09-03 07:51:39.070577518 +0200 +@@ -106,7 +106,6 @@ add_action( 'profile_update', 'default_p + add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called. + add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called. + +-add_action( 'admin_notices', 'update_nag', 3 ); + add_action( 'admin_notices', 'maintenance_nag', 10 ); + + add_filter( 'update_footer', 'core_update_footer' ); +diff -up wordpress/wp-admin/includes/class-core-upgrader.php.rpm wordpress/wp-admin/includes/class-core-upgrader.php +--- wordpress/wp-admin/includes/class-core-upgrader.php.rpm 2016-09-03 07:59:45.832367671 +0200 ++++ wordpress/wp-admin/includes/class-core-upgrader.php 2016-09-03 07:59:50.160392833 +0200 +@@ -236,6 +236,9 @@ class Core_Upgrader extends WP_Upgrader + * @return bool True if we should update to the offered version, otherwise false. + */ + public static function should_update_to_version( $offered_ver ) { ++ // RPM: nether allow core update ++ return false; ++ + include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z + + $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y +diff -up wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm wordpress/wp-admin/includes/class-wp-automatic-updater.php +--- wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm 2016-09-03 08:00:15.810540773 +0200 ++++ wordpress/wp-admin/includes/class-wp-automatic-updater.php 2016-09-03 08:00:28.915616106 +0200 +@@ -31,7 +31,7 @@ class WP_Automatic_Updater { + */ + public function is_disabled() { + // Background updates are disabled if you don't want file changes. +- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) ++ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) + return true; + + if ( wp_installing() ) +diff -up wordpress/wp-admin/includes/translation-install.php.rpm wordpress/wp-admin/includes/translation-install.php +--- wordpress/wp-admin/includes/translation-install.php.rpm 2016-05-22 20:01:30.000000000 +0200 ++++ wordpress/wp-admin/includes/translation-install.php 2016-09-03 07:50:51.813312387 +0200 +@@ -181,7 +181,7 @@ function wp_download_language_pack( $dow + return $download; + } + +- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { ++ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { + return false; + } + +@@ -224,7 +224,7 @@ function wp_download_language_pack( $dow + * @return bool Returns true on success, false on failure. + */ + function wp_can_install_language_pack() { +- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { ++ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { + return false; + } + +diff -up wordpress/wp-admin/includes/update.php.rpm wordpress/wp-admin/includes/update.php +--- wordpress/wp-admin/includes/update.php.rpm 2016-08-10 21:06:31.000000000 +0200 ++++ wordpress/wp-admin/includes/update.php 2016-09-03 07:50:51.812312381 +0200 +@@ -271,7 +271,7 @@ function update_right_now_message() { + $cur = get_preferred_from_update_core(); + + if ( isset( $cur->response ) && $cur->response == 'upgrade' ) +- $msg .= '' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . ' '; ++ $msg .= ''; + } + + /* translators: 1: version number, 2: theme name */ +diff -up wordpress/wp-includes/capabilities.php.rpm wordpress/wp-includes/capabilities.php +--- wordpress/wp-includes/capabilities.php.rpm 2016-06-30 03:02:29.000000000 +0200 ++++ wordpress/wp-includes/capabilities.php 2016-09-03 07:50:51.812312381 +0200 +@@ -330,7 +330,7 @@ function map_meta_cap( $cap, $user_id ) + // Disallow the file editors. + if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) + $caps[] = 'do_not_allow'; +- elseif ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) ++ elseif ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) + $caps[] = 'do_not_allow'; + elseif ( is_multisite() && ! is_super_admin( $user_id ) ) + $caps[] = 'do_not_allow'; +@@ -348,7 +348,7 @@ function map_meta_cap( $cap, $user_id ) + case 'update_core': + // Disallow anything that creates, deletes, or updates core, plugin, or theme files. + // Files in uploads are excepted. +- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { ++ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { + $caps[] = 'do_not_allow'; + } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) { + $caps[] = 'do_not_allow'; +diff -up wordpress/wp-includes/update.php.rpm wordpress/wp-includes/update.php +--- wordpress/wp-includes/update.php.rpm 2016-05-25 21:36:28.000000000 +0200 ++++ wordpress/wp-includes/update.php 2016-09-03 07:50:51.813312387 +0200 +@@ -653,9 +653,6 @@ function _maybe_update_themes() { + * @since 3.1.0 + */ + function wp_schedule_update_checks() { +- if ( ! wp_next_scheduled( 'wp_version_check' ) && ! wp_installing() ) +- wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); +- + if ( ! wp_next_scheduled( 'wp_update_plugins' ) && ! wp_installing() ) + wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); + diff --git a/wordpress.spec b/wordpress.spec index 3eb0fc7..1c1c50b 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -25,9 +25,9 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.5.3 +Version: 4.6 Group: Applications/Publishing -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Source0: http://wordpress.org/%{name}-%{version}%{?prever:-%{prever}}.tar.gz @@ -56,7 +56,7 @@ Patch5: wordpress-4.0-config.patch # disable version check and updated # change DISALLOW_FILE_MODS default value to true # ignore WP_AUTO_UPDATE_CORE (always false) -Patch6: wordpress-4.5-noupdate.patch +Patch6: wordpress-4.6-noupdate.patch # Use system libraries Patch7: wordpress-4.4-systemlibs.patch @@ -69,6 +69,8 @@ Requires: php53-simplepie >= 1.3.1 %if %{with_getid3} Requires: php53-getid3 %endif +Requires: php53-mysql + %else %if %{with_nginx} Requires: webserver @@ -77,6 +79,7 @@ Suggests: httpd # For directory ownership Requires: httpd-filesystem Requires: nginx-filesystem + %else Requires: php >= 5.2.4 %endif @@ -84,13 +87,15 @@ Requires: php-simplepie >= 1.3.1 %if %{with_getid3} Requires: php-getid3 %endif +Requires: php-ctype +Requires: php-filter +Requires: php-mysqli %endif -# From phpcompatinfo report for version 3.8 + +# From phpcompatinfo report for version 4.5.3 Requires: php-curl Requires: php-date Requires: php-dom -Requires: php-enchant -Requires: php-ereg Requires: php-exif Requires: php-fileinfo Requires: php-ftp @@ -101,7 +106,6 @@ Requires: php-iconv Requires: php-json Requires: php-libxml Requires: php-mbstring -Requires: php-mysql Requires: php-openssl Requires: php-pcre Requires: php-posix @@ -285,10 +289,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/wordpress/index.php %dir %{wp_content}/ %{wp_content}/index.php -%dir %attr(0775,apache,ftp) %{wp_content}/plugins -%dir %attr(0775,apache,ftp) %{wp_content}/themes -%dir %attr(0775,apache,ftp) %{wp_content}/upgrade -%dir %attr(0775,apache,ftp) %{wp_content}/uploads +%dir %attr(2775,apache,ftp) %{wp_content}/plugins +%dir %attr(2775,apache,ftp) %{wp_content}/themes +%dir %attr(2775,apache,ftp) %{wp_content}/upgrade +%dir %attr(2775,apache,ftp) %{wp_content}/uploads %{wp_content}/plugins/* %{wp_content}/themes/* %{!?_licensedir:%global license %%doc} @@ -303,6 +307,10 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Sat Sep 3 2016 Remi Collet - 4.6-2 +- WordPress 4.6 “Pepper” +- fix direftory permissions #1305687 + * Wed Jun 22 2016 Remi Collet - 4.5.3-1 - WordPress 4.5.3 Maintenance and Security Release From 3c2b9c355d5160a11f0815143b0dcd1a1dd454de Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 8 Sep 2016 08:44:09 +0200 Subject: [PATCH 2/9] WordPress 4.6.1 Security and Maintenance Release (cherry picked from commit b2e1003fecedab032434c32b5a1ee710fd8a1e63) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 9 ++++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7ab8d07..a4d5620 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ clog /wordpress-4.5.3.tar.gz /wordpress-debian_patches_hello.patch /wordpress-4.6.tar.gz +/wordpress-4.6.1.tar.gz diff --git a/sources b/sources index e275cdf..cde0dc9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b07bb75bb0f85fd6e1a65ad3d0b876d8 wordpress-4.6.tar.gz +ca0b978fd702eac033830ca2d0784b79 wordpress-4.6.1.tar.gz diff --git a/wordpress.spec b/wordpress.spec index 1c1c50b..2c660d9 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -25,9 +25,9 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.6 +Version: 4.6.1 Group: Applications/Publishing -Release: 2%{?dist} +Release: 1%{?dist} License: GPLv2 Source0: http://wordpress.org/%{name}-%{version}%{?prever:-%{prever}}.tar.gz @@ -307,9 +307,12 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Thu Sep 8 2016 Remi Collet - 4.6.1-1 +- WordPress 4.6.1 Security and Maintenance Release + * Sat Sep 3 2016 Remi Collet - 4.6-2 - WordPress 4.6 “Pepper” -- fix direftory permissions #1305687 +- fix directory permissions #1305687 * Wed Jun 22 2016 Remi Collet - 4.5.3-1 - WordPress 4.5.3 Maintenance and Security Release From 336b5b092f61b7236347c4c4711f8247a1eb3d99 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Dec 2016 14:38:14 +0100 Subject: [PATCH 3/9] =?UTF-8?q?WordPress=204.7=20=E2=80=9CVaughan=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 0f6aae9a625bf5562bb259e405470c035b441757) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a4d5620..27a8fea 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ clog /wordpress-debian_patches_hello.patch /wordpress-4.6.tar.gz /wordpress-4.6.1.tar.gz +/wordpress-4.7.tar.gz diff --git a/sources b/sources index cde0dc9..230dbc1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ca0b978fd702eac033830ca2d0784b79 wordpress-4.6.1.tar.gz +474c022ef8e5371a8fc756dbfeb96d1b wordpress-4.7.tar.gz diff --git a/wordpress.spec b/wordpress.spec index 2c660d9..891bde2 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -25,7 +25,7 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.6.1 +Version: 4.7 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -307,6 +307,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Wed Dec 7 2016 Remi Collet - 4.7.0-1 +- WordPress 4.7 “Vaughan” + * Thu Sep 8 2016 Remi Collet - 4.6.1-1 - WordPress 4.6.1 Security and Maintenance Release From c69f6842caaccf1704663bb583abd5ccdcc6bf69 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 12 Jan 2017 08:28:59 +0100 Subject: [PATCH 4/9] WordPress 4.7.1 Security and Maintenance Release (cherry picked from commit 06ad60dce17167a1c99218e627c9f6c7b4175014) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 27a8fea..f1ffd8a 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ clog /wordpress-4.6.tar.gz /wordpress-4.6.1.tar.gz /wordpress-4.7.tar.gz +/wordpress-4.7.1.tar.gz diff --git a/sources b/sources index 230dbc1..25c194e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -474c022ef8e5371a8fc756dbfeb96d1b wordpress-4.7.tar.gz +SHA512 (wordpress-4.7.1.tar.gz) = ccb2d36e0192ceeb02e4391a3bd6fb100558c3013c1e10a91465c9b7d83e294a51c35ee60637f01838131e2a3c99266320fe0e90d51979c566a53fffed19dc4c diff --git a/wordpress.spec b/wordpress.spec index 891bde2..22879e0 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -25,7 +25,7 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.7 +Version: 4.7.1 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -307,6 +307,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Thu Jan 12 2017 Remi Collet - 4.7.1-1 +- WordPress 4.7.1 Security and Maintenance Release + * Wed Dec 7 2016 Remi Collet - 4.7.0-1 - WordPress 4.7 “Vaughan” From c8500854e1f88a99c32fb736dfc22225d8ba3758 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 27 Jan 2017 10:40:42 +0100 Subject: [PATCH 5/9] WordPress 4.7.2 Security Release (cherry picked from commit 8007b8d8efde768dc6866245008927954fcc4445) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f1ffd8a..182111d 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ clog /wordpress-4.6.1.tar.gz /wordpress-4.7.tar.gz /wordpress-4.7.1.tar.gz +/wordpress-4.7.2.tar.gz diff --git a/sources b/sources index 25c194e..ae02007 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.7.1.tar.gz) = ccb2d36e0192ceeb02e4391a3bd6fb100558c3013c1e10a91465c9b7d83e294a51c35ee60637f01838131e2a3c99266320fe0e90d51979c566a53fffed19dc4c +SHA512 (wordpress-4.7.2.tar.gz) = 610a820cf2eea39a60100515f68e95a7194a4e20df9c8158111b1978d5bc7c606dd2b7adf2f4019e9108a136e12eb2db7ae5ed75681cec23ffb901f8cc7fb83a diff --git a/wordpress.spec b/wordpress.spec index 22879e0..7b5d3b6 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -25,7 +25,7 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.7.1 +Version: 4.7.2 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -307,6 +307,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Fri Jan 27 2017 Remi Collet - 4.7.2-1 +- WordPress 4.7.2 Security Release + * Thu Jan 12 2017 Remi Collet - 4.7.1-1 - WordPress 4.7.1 Security and Maintenance Release From 96aa4d33d0e92e2fa4bf7c1897ba7f88b4220bb2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Mar 2017 06:31:54 +0100 Subject: [PATCH 6/9] WordPress 4.7.3 Security and Maintenance Release (cherry picked from commit 093664f07691cae6506dcf9b4f5997fbde3d171f) (cherry picked from commit d12ec505393489dc3f6d0a09597185f27a4c91c8) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 182111d..db8025a 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ clog /wordpress-4.7.tar.gz /wordpress-4.7.1.tar.gz /wordpress-4.7.2.tar.gz +/wordpress-4.7.3.tar.gz diff --git a/sources b/sources index ae02007..474cc26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.7.2.tar.gz) = 610a820cf2eea39a60100515f68e95a7194a4e20df9c8158111b1978d5bc7c606dd2b7adf2f4019e9108a136e12eb2db7ae5ed75681cec23ffb901f8cc7fb83a +SHA512 (wordpress-4.7.3.tar.gz) = 071df65c3a43557faf351838a661a83e26d8de37c8633dc17a59d773cc91caef640a625b0719606df1fc563fd18af71ba1da22a5b6f345339e73761754484dc5 diff --git a/wordpress.spec b/wordpress.spec index 7b5d3b6..b717b87 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -25,7 +25,7 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.7.2 +Version: 4.7.3 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -307,6 +307,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Tue Mar 7 2017 Remi Collet - 4.7.3-1 +- WordPress 4.7.3 Security and Maintenance Release + * Fri Jan 27 2017 Remi Collet - 4.7.2-1 - WordPress 4.7.2 Security Release From eae6d9004e49eeb5e1257cb68078636218abf294 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 22 Apr 2017 12:37:59 -0600 Subject: [PATCH 7/9] Update to 4.7.4. Maintenance Release. --- .gitignore | 1 + sources | 2 +- wordpress-4.0-tinymce_noflash.patch | 51 ++++++++++++++++------------- wordpress.spec | 5 ++- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index db8025a..ad4dbd7 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ clog /wordpress-4.7.1.tar.gz /wordpress-4.7.2.tar.gz /wordpress-4.7.3.tar.gz +/wordpress-4.7.4.tar.gz diff --git a/sources b/sources index 474cc26..78b310c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.7.3.tar.gz) = 071df65c3a43557faf351838a661a83e26d8de37c8633dc17a59d773cc91caef640a625b0719606df1fc563fd18af71ba1da22a5b6f345339e73761754484dc5 +SHA512 (wordpress-4.7.4.tar.gz) = 9d1b7fa2688e80d8e8409bd9f7fa61007b266de70a11eaa592fc737c501906e9c14b20eab63542077acb8dd65f5491f481b0945f5ed9e98d8b5207a47c3ec950 diff --git a/wordpress-4.0-tinymce_noflash.patch b/wordpress-4.0-tinymce_noflash.patch index 217e7f9..76f1bb9 100644 --- a/wordpress-4.0-tinymce_noflash.patch +++ b/wordpress-4.0-tinymce_noflash.patch @@ -1,23 +1,30 @@ -diff -up wordpress/wp-includes/js/tinymce/plugins/media/plugin.js.rpm wordpress/wp-includes/js/tinymce/plugins/media/plugin.js ---- wordpress/wp-includes/js/tinymce/plugins/media/plugin.js.rpm 2014-08-22 01:53:18.000000000 +0200 -+++ wordpress/wp-includes/js/tinymce/plugins/media/plugin.js 2014-09-08 13:10:15.717314458 +0200 -@@ -46,10 +46,6 @@ tinymce.PluginManager.add('media', funct - return 'video/ogg'; - } - -- if (url.indexOf('.swf') != -1) { -- return 'application/x-shockwave-flash'; -- } +diff -Nur wordpress.orig/wp-includes/js/tinymce/plugins/media/plugin.js wordpress/wp-includes/js/tinymce/plugins/media/plugin.js +--- wordpress.orig/wp-includes/js/tinymce/plugins/media/plugin.js 2017-04-12 19:52:38.000000000 -0600 ++++ wordpress/wp-includes/js/tinymce/plugins/media/plugin.js 2017-04-22 11:28:42.415026834 -0600 +@@ -438,7 +438,6 @@ + 'mp4': 'video/mp4', + 'webm': 'video/webm', + 'ogg': 'video/ogg', +- 'swf': 'application/x-shockwave-flash' + }; + var fileEnd = url.toLowerCase().split('.').pop(); + var mime = mimes[fileEnd]; +@@ -583,18 +582,6 @@ + '" width="' + data.width + + '" height="' + data.height + + '"' + allowFullscreen + '>'; +- } else if (data.source1mime === "application/x-shockwave-flash") { +- html += +- ''; - - return ''; - } - -@@ -247,7 +243,7 @@ tinymce.PluginManager.add('media', funct - data.source1mime = guessMime(data.source1); - data.source2mime = guessMime(data.source2); - data.poster = editor.convertURL(data.poster, "poster"); -- data.flashPlayerUrl = editor.convertURL(url + '/moxieplayer.swf', "movie"); -+ data.flashPlayerUrl = false; - - tinymce.each(urlPatterns, function(pattern) { - var match, i, url; +- if (data.poster) { +- html += ''; +- } +- +- html += ''; + } else if (data.source1mime.indexOf('audio') !== -1) { + if (editor.settings.audio_template_callback) { + html = editor.settings.audio_template_callback(data); diff --git a/wordpress.spec b/wordpress.spec index b717b87..8c4281e 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -25,7 +25,7 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.7.3 +Version: 4.7.4 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -307,6 +307,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Sat Apr 22 2017 Kevin Fenzi - 4.7.4-1 +- Update to 4.7.4. Maintenance Release. + * Tue Mar 7 2017 Remi Collet - 4.7.3-1 - WordPress 4.7.3 Security and Maintenance Release From dc85f4c8ce93fe0d415eb5766755d1abe72902a2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 May 2017 06:42:18 +0200 Subject: [PATCH 8/9] WordPress 4.7.5 Security and Maintenance Release (cherry picked from commit ee90367b3ee9655b9c003da4ea53981e41db2d07) (cherry picked from commit e26da8701bd29c043de8ffb9d9ce56b652fe2e52) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 36 ++++-------------------------------- 3 files changed, 6 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index ad4dbd7..cf51623 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ clog /wordpress-4.7.2.tar.gz /wordpress-4.7.3.tar.gz /wordpress-4.7.4.tar.gz +/wordpress-4.7.5.tar.gz diff --git a/sources b/sources index 78b310c..c840d3e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.7.4.tar.gz) = 9d1b7fa2688e80d8e8409bd9f7fa61007b266de70a11eaa592fc737c501906e9c14b20eab63542077acb8dd65f5491f481b0945f5ed9e98d8b5207a47c3ec950 +SHA512 (wordpress-4.7.5.tar.gz) = 7d6e4feaf95c49ec7e68068687a399145613d90b5867616ac7a324c60f9107f2453c9f745a455b94e84ef12b191cb2ac67e6b4dd3b8f669e344ea63afc6988ca diff --git a/wordpress.spec b/wordpress.spec index 8c4281e..7ace226 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -14,18 +14,12 @@ %global with_nginx 0 %endif -# https://bugzilla.redhat.com/1147817 php53-getid3 review -%if 0%{?fedora} >= 17 || 0%{?rhel} >= 6 -%global with_getid3 1 -%else -%global with_getid3 0 -%endif #global prever RC1 Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.7.4 +Version: 4.7.5 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -60,18 +54,8 @@ Patch6: wordpress-4.6-noupdate.patch # Use system libraries Patch7: wordpress-4.4-systemlibs.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -%if 0%{?rhel} == 5 -Requires: php53 >= 5.2.4 -Requires: php53-simplepie >= 1.3.1 -%if %{with_getid3} -Requires: php53-getid3 -%endif -Requires: php53-mysql - -%else %if %{with_nginx} Requires: webserver Requires: php(httpd) @@ -84,13 +68,10 @@ Requires: nginx-filesystem Requires: php >= 5.2.4 %endif Requires: php-simplepie >= 1.3.1 -%if %{with_getid3} Requires: php-getid3 -%endif Requires: php-ctype Requires: php-filter Requires: php-mysqli -%endif # From phpcompatinfo report for version 4.5.3 Requires: php-curl @@ -167,9 +148,7 @@ rm wp-content/plugins/akismet/.htaccess # changes 'plugins:["flash,"silverlight","youtube","vimeo"]' to # 'plugins:["youtube","vimeo"]' sed -s 's/"flash","silverlight",//' -i wp-includes/js/mediaelement/mediaelement-and-player.min.js -%if %{with_getid3} %patch7 -p1 -%endif # We patch a .js file, used patched file instead of unpatch minified one ln -sf plugin.js wp-includes/js/tinymce/plugins/media/plugin.min.js @@ -231,11 +210,7 @@ rm -f ${RPM_BUILD_ROOT}%{_datadir}/wordpress/{license.txt,readme.html} # Remove bundled php-simplepie and link to system copy rm ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-includes/class-simplepie.php rm -r ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-includes/SimplePie -%if 0%{?rhel} == 5 -ln -s /usr/share/php/php53-simplepie/autoloader.php \ -%else ln -s /usr/share/php/php-simplepie/autoloader.php \ -%endif ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-includes/class-simplepie.php # Remove bundled PHPMailer and link to system one @@ -246,10 +221,8 @@ for fic in phpmailer smtp; do ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-includes/class-$fic.php done -%if %{with_getid3} # Remove bundled php-getid3 rm -r ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-includes/ID3 -%endif # Remove bundled ca-bundle.crt rm ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-includes/certificates/ca-bundle.crt @@ -274,11 +247,7 @@ find ${RPM_BUILD_ROOT} \( -name \*.dolly -o -name \*.rhbz522897 -o -name \*.orig #fi -%clean -rm -rf ${RPM_BUILD_ROOT} - %files -%defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/httpd/conf.d/wordpress.conf %if %{with_nginx} %config(noreplace) %{_sysconfdir}/nginx/default.d/wordpress.conf @@ -307,6 +276,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Wed May 17 2017 Remi Collet - 4.7.5-1 +- WordPress 4.7.5 Security and Maintenance Release + * Sat Apr 22 2017 Kevin Fenzi - 4.7.4-1 - Update to 4.7.4. Maintenance Release. From d5011155c722f3387b5c857cce95fc9ec6446d3e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 9 Jun 2017 13:43:56 +0200 Subject: [PATCH 9/9] =?UTF-8?q?WordPress=204.8=20=E2=80=9CEvans=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 64ad28aeee49fc904cd43d768bb226c5463be5a8) --- .gitignore | 1 + sources | 2 +- wordpress-4.0-tinymce_noflash.patch | 30 -------- wordpress-4.6-noupdate.patch | 103 ---------------------------- wordpress-4.8-noupdate.patch | 71 +++++++++++++++++++ wordpress-4.8-tinymce_noflash.patch | 31 +++++++++ wordpress.spec | 10 +-- 7 files changed, 110 insertions(+), 138 deletions(-) delete mode 100644 wordpress-4.0-tinymce_noflash.patch delete mode 100644 wordpress-4.6-noupdate.patch create mode 100644 wordpress-4.8-noupdate.patch create mode 100644 wordpress-4.8-tinymce_noflash.patch diff --git a/.gitignore b/.gitignore index cf51623..eee2c6e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ clog /wordpress-4.7.3.tar.gz /wordpress-4.7.4.tar.gz /wordpress-4.7.5.tar.gz +/wordpress-4.8.tar.gz diff --git a/sources b/sources index c840d3e..de99ee2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.7.5.tar.gz) = 7d6e4feaf95c49ec7e68068687a399145613d90b5867616ac7a324c60f9107f2453c9f745a455b94e84ef12b191cb2ac67e6b4dd3b8f669e344ea63afc6988ca +SHA512 (wordpress-4.8.tar.gz) = 20249cf13dbcec198df3ec1feb3a7381c194c7c9f832262e40449f90c5e5b5d3f4b63b6021e78c65cc615e059b1b601881d33ce03e1e4618231329b680511467 diff --git a/wordpress-4.0-tinymce_noflash.patch b/wordpress-4.0-tinymce_noflash.patch deleted file mode 100644 index 76f1bb9..0000000 --- a/wordpress-4.0-tinymce_noflash.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -Nur wordpress.orig/wp-includes/js/tinymce/plugins/media/plugin.js wordpress/wp-includes/js/tinymce/plugins/media/plugin.js ---- wordpress.orig/wp-includes/js/tinymce/plugins/media/plugin.js 2017-04-12 19:52:38.000000000 -0600 -+++ wordpress/wp-includes/js/tinymce/plugins/media/plugin.js 2017-04-22 11:28:42.415026834 -0600 -@@ -438,7 +438,6 @@ - 'mp4': 'video/mp4', - 'webm': 'video/webm', - 'ogg': 'video/ogg', -- 'swf': 'application/x-shockwave-flash' - }; - var fileEnd = url.toLowerCase().split('.').pop(); - var mime = mimes[fileEnd]; -@@ -583,18 +582,6 @@ - '" width="' + data.width + - '" height="' + data.height + - '"' + allowFullscreen + '>'; -- } else if (data.source1mime === "application/x-shockwave-flash") { -- html += -- ''; -- -- if (data.poster) { -- html += ''; -- } -- -- html += ''; - } else if (data.source1mime.indexOf('audio') !== -1) { - if (editor.settings.audio_template_callback) { - html = editor.settings.audio_template_callback(data); diff --git a/wordpress-4.6-noupdate.patch b/wordpress-4.6-noupdate.patch deleted file mode 100644 index 0038d1e..0000000 --- a/wordpress-4.6-noupdate.patch +++ /dev/null @@ -1,103 +0,0 @@ -diff -up wordpress/wp-admin/includes/admin-filters.php.rpm wordpress/wp-admin/includes/admin-filters.php ---- wordpress/wp-admin/includes/admin-filters.php.rpm 2016-09-03 07:50:51.812312381 +0200 -+++ wordpress/wp-admin/includes/admin-filters.php 2016-09-03 07:51:39.070577518 +0200 -@@ -106,7 +106,6 @@ add_action( 'profile_update', 'default_p - add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called. - add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called. - --add_action( 'admin_notices', 'update_nag', 3 ); - add_action( 'admin_notices', 'maintenance_nag', 10 ); - - add_filter( 'update_footer', 'core_update_footer' ); -diff -up wordpress/wp-admin/includes/class-core-upgrader.php.rpm wordpress/wp-admin/includes/class-core-upgrader.php ---- wordpress/wp-admin/includes/class-core-upgrader.php.rpm 2016-09-03 07:59:45.832367671 +0200 -+++ wordpress/wp-admin/includes/class-core-upgrader.php 2016-09-03 07:59:50.160392833 +0200 -@@ -236,6 +236,9 @@ class Core_Upgrader extends WP_Upgrader - * @return bool True if we should update to the offered version, otherwise false. - */ - public static function should_update_to_version( $offered_ver ) { -+ // RPM: nether allow core update -+ return false; -+ - include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z - - $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y -diff -up wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm wordpress/wp-admin/includes/class-wp-automatic-updater.php ---- wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm 2016-09-03 08:00:15.810540773 +0200 -+++ wordpress/wp-admin/includes/class-wp-automatic-updater.php 2016-09-03 08:00:28.915616106 +0200 -@@ -31,7 +31,7 @@ class WP_Automatic_Updater { - */ - public function is_disabled() { - // Background updates are disabled if you don't want file changes. -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) - return true; - - if ( wp_installing() ) -diff -up wordpress/wp-admin/includes/translation-install.php.rpm wordpress/wp-admin/includes/translation-install.php ---- wordpress/wp-admin/includes/translation-install.php.rpm 2016-05-22 20:01:30.000000000 +0200 -+++ wordpress/wp-admin/includes/translation-install.php 2016-09-03 07:50:51.813312387 +0200 -@@ -181,7 +181,7 @@ function wp_download_language_pack( $dow - return $download; - } - -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { - return false; - } - -@@ -224,7 +224,7 @@ function wp_download_language_pack( $dow - * @return bool Returns true on success, false on failure. - */ - function wp_can_install_language_pack() { -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { - return false; - } - -diff -up wordpress/wp-admin/includes/update.php.rpm wordpress/wp-admin/includes/update.php ---- wordpress/wp-admin/includes/update.php.rpm 2016-08-10 21:06:31.000000000 +0200 -+++ wordpress/wp-admin/includes/update.php 2016-09-03 07:50:51.812312381 +0200 -@@ -271,7 +271,7 @@ function update_right_now_message() { - $cur = get_preferred_from_update_core(); - - if ( isset( $cur->response ) && $cur->response == 'upgrade' ) -- $msg .= '' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . ' '; -+ $msg .= ''; - } - - /* translators: 1: version number, 2: theme name */ -diff -up wordpress/wp-includes/capabilities.php.rpm wordpress/wp-includes/capabilities.php ---- wordpress/wp-includes/capabilities.php.rpm 2016-06-30 03:02:29.000000000 +0200 -+++ wordpress/wp-includes/capabilities.php 2016-09-03 07:50:51.812312381 +0200 -@@ -330,7 +330,7 @@ function map_meta_cap( $cap, $user_id ) - // Disallow the file editors. - if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) - $caps[] = 'do_not_allow'; -- elseif ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) -+ elseif ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) - $caps[] = 'do_not_allow'; - elseif ( is_multisite() && ! is_super_admin( $user_id ) ) - $caps[] = 'do_not_allow'; -@@ -348,7 +348,7 @@ function map_meta_cap( $cap, $user_id ) - case 'update_core': - // Disallow anything that creates, deletes, or updates core, plugin, or theme files. - // Files in uploads are excepted. -- if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { -+ if ( !defined( 'DISALLOW_FILE_MODS' ) || DISALLOW_FILE_MODS ) { - $caps[] = 'do_not_allow'; - } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) { - $caps[] = 'do_not_allow'; -diff -up wordpress/wp-includes/update.php.rpm wordpress/wp-includes/update.php ---- wordpress/wp-includes/update.php.rpm 2016-05-25 21:36:28.000000000 +0200 -+++ wordpress/wp-includes/update.php 2016-09-03 07:50:51.813312387 +0200 -@@ -653,9 +653,6 @@ function _maybe_update_themes() { - * @since 3.1.0 - */ - function wp_schedule_update_checks() { -- if ( ! wp_next_scheduled( 'wp_version_check' ) && ! wp_installing() ) -- wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); -- - if ( ! wp_next_scheduled( 'wp_update_plugins' ) && ! wp_installing() ) - wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); - diff --git a/wordpress-4.8-noupdate.patch b/wordpress-4.8-noupdate.patch new file mode 100644 index 0000000..b2e2f37 --- /dev/null +++ b/wordpress-4.8-noupdate.patch @@ -0,0 +1,71 @@ +diff -up wordpress/wp-admin/includes/admin-filters.php.rpm wordpress/wp-admin/includes/admin-filters.php +--- wordpress/wp-admin/includes/admin-filters.php.rpm 2016-07-31 20:11:29.000000000 +0200 ++++ wordpress/wp-admin/includes/admin-filters.php 2017-06-09 13:27:51.184747881 +0200 +@@ -106,7 +106,6 @@ add_action( 'profile_update', 'default_p + add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called. + add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called. + +-add_action( 'admin_notices', 'update_nag', 3 ); + add_action( 'admin_notices', 'maintenance_nag', 10 ); + + add_filter( 'update_footer', 'core_update_footer' ); +diff -up wordpress/wp-admin/includes/class-core-upgrader.php.rpm wordpress/wp-admin/includes/class-core-upgrader.php +--- wordpress/wp-admin/includes/class-core-upgrader.php.rpm 2016-07-08 15:19:30.000000000 +0200 ++++ wordpress/wp-admin/includes/class-core-upgrader.php 2017-06-09 13:27:51.184747881 +0200 +@@ -236,6 +236,9 @@ class Core_Upgrader extends WP_Upgrader + * @return bool True if we should update to the offered version, otherwise false. + */ + public static function should_update_to_version( $offered_ver ) { ++ // RPM: nether allow core update ++ return false; ++ + include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z + + $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y +diff -up wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm wordpress/wp-admin/includes/class-wp-automatic-updater.php +--- wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm 2017-06-09 13:27:51.184747881 +0200 ++++ wordpress/wp-admin/includes/class-wp-automatic-updater.php 2017-06-09 13:30:18.175525864 +0200 +@@ -38,7 +38,7 @@ class WP_Automatic_Updater { + return true; + + // More fine grained control can be done through the WP_AUTO_UPDATE_CORE constant and filters. +- $disabled = defined( 'AUTOMATIC_UPDATER_DISABLED' ) && AUTOMATIC_UPDATER_DISABLED; ++ $disabled = !defined( 'AUTOMATIC_UPDATER_DISABLED' ) || AUTOMATIC_UPDATER_DISABLED; + + /** + * Filters whether to entirely disable background updates. +diff -up wordpress/wp-admin/includes/update.php.rpm wordpress/wp-admin/includes/update.php +--- wordpress/wp-admin/includes/update.php.rpm 2017-05-06 16:30:40.000000000 +0200 ++++ wordpress/wp-admin/includes/update.php 2017-06-09 13:27:51.185747886 +0200 +@@ -279,7 +279,7 @@ function update_right_now_message() { + $cur = get_preferred_from_update_core(); + + if ( isset( $cur->response ) && $cur->response == 'upgrade' ) +- $msg .= '' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . ' '; ++ $msg .= ''; + } + + /* translators: 1: version number, 2: theme name */ +diff -up wordpress/wp-includes/load.php.rpm wordpress/wp-includes/load.php +--- wordpress/wp-includes/load.php.rpm 2017-06-09 13:33:24.946514394 +0200 ++++ wordpress/wp-includes/load.php 2017-06-09 13:33:35.654571069 +0200 +@@ -1108,5 +1108,5 @@ function wp_is_file_mod_allowed( $contex + * @param bool $file_mod_allowed Whether file modifications are allowed. + * @param string $context The usage context. + */ +- return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context ); ++ return apply_filters( 'file_mod_allowed', defined( 'DISALLOW_FILE_MODS' ) && ! DISALLOW_FILE_MODS, $context ); + } +diff -up wordpress/wp-includes/update.php.rpm wordpress/wp-includes/update.php +--- wordpress/wp-includes/update.php.rpm 2017-05-06 16:30:40.000000000 +0200 ++++ wordpress/wp-includes/update.php 2017-06-09 13:27:51.185747886 +0200 +@@ -683,9 +683,6 @@ function _maybe_update_themes() { + * @since 3.1.0 + */ + function wp_schedule_update_checks() { +- if ( ! wp_next_scheduled( 'wp_version_check' ) && ! wp_installing() ) +- wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); +- + if ( ! wp_next_scheduled( 'wp_update_plugins' ) && ! wp_installing() ) + wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); + diff --git a/wordpress-4.8-tinymce_noflash.patch b/wordpress-4.8-tinymce_noflash.patch new file mode 100644 index 0000000..f2a5cde --- /dev/null +++ b/wordpress-4.8-tinymce_noflash.patch @@ -0,0 +1,31 @@ +--- ./wp-includes/js/tinymce/plugins/media/plugin.js.orig 2017-06-09 13:24:42.303748183 +0200 ++++ ./wp-includes/js/tinymce/plugins/media/plugin.js 2017-06-09 13:25:21.965958105 +0200 +@@ -937,8 +937,7 @@ + 'wav': 'audio/wav', + 'mp4': 'video/mp4', + 'webm': 'video/webm', +- 'ogg': 'video/ogg', +- 'swf': 'application/x-shockwave-flash' ++ 'ogg': 'video/ogg' + }; + var fileEnd = url.toLowerCase().split('.').pop(); + var mime = mimes[fileEnd]; +@@ -1111,18 +1110,6 @@ + '" width="' + data.width + + '" height="' + data.height + + '"' + allowFullscreen + '>'; +- } else if (data.source1mime === "application/x-shockwave-flash") { +- html += +- ''; +- +- if (data.poster) { +- html += ''; +- } +- +- html += ''; + } else if (data.source1mime.indexOf('audio') !== -1) { + if (editor.settings.audio_template_callback) { + html = editor.settings.audio_template_callback(data); diff --git a/wordpress.spec b/wordpress.spec index 7ace226..2c48138 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -19,7 +19,7 @@ Summary: Blog tool and publishing platform URL: http://www.wordpress.org Name: wordpress -Version: 4.7.5 +Version: 4.8 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -41,7 +41,7 @@ Patch2: wordpress-4.4-no_swfupload.patch # Adjust tinymce's media plugin not to use its SWF plugin. This changes # 'p.getParam("flash_video_player_url",u.convertUrl(u.url+"/moxieplayer.swf"))' # to 'false' -Patch3: wordpress-4.0-tinymce_noflash.patch +Patch3: wordpress-4.8-tinymce_noflash.patch # RPM configuration: # Path to installation # Disable auto-updater @@ -50,7 +50,7 @@ Patch5: wordpress-4.0-config.patch # disable version check and updated # change DISALLOW_FILE_MODS default value to true # ignore WP_AUTO_UPDATE_CORE (always false) -Patch6: wordpress-4.6-noupdate.patch +Patch6: wordpress-4.8-noupdate.patch # Use system libraries Patch7: wordpress-4.4-systemlibs.patch @@ -130,7 +130,6 @@ Important information in %{_pkgdocdir}/README.fedora rm wp-includes/js/mediaelement/silverlightmediaelement.xap rm wp-includes/js/mediaelement/flashmediaelement.swf -rm wp-includes/js/tinymce/plugins/media/moxieplayer.swf rm wp-includes/js/plupload/plupload.silverlight.xap rm wp-includes/js/plupload/plupload.flash.swf @@ -276,6 +275,9 @@ find ${RPM_BUILD_ROOT} \( -name \*.dolly -o -name \*.rhbz522897 -o -name \*.orig %changelog +* Fri Jun 9 2017 Remi Collet - 4.8-1 +- WordPress 4.8 “Evans” + * Wed May 17 2017 Remi Collet - 4.7.5-1 - WordPress 4.7.5 Security and Maintenance Release