From d12ec505393489dc3f6d0a09597185f27a4c91c8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Mar 2017 06:31:54 +0100 Subject: [PATCH 1/6] WordPress 4.7.3 Security and Maintenance Release (cherry picked from commit 093664f07691cae6506dcf9b4f5997fbde3d171f) --- .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 049f8d8..45e6137 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 e26da8701bd29c043de8ffb9d9ce56b652fe2e52 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 May 2017 06:42:18 +0200 Subject: [PATCH 2/6] WordPress 4.7.5 Security and Maintenance Release (cherry picked from commit ee90367b3ee9655b9c003da4ea53981e41db2d07) --- .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 d6733de..483003e 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 da7ebbc3741934d737affd4a165f816e39b42c13 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 9 Jun 2017 13:43:56 +0200 Subject: [PATCH 3/6] =?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 483003e..db2d02f 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 From 575196f2630a84c9dbc8b1dcbe0b416a9040ea86 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 3 Aug 2017 09:52:04 +0200 Subject: [PATCH 4/6] Update to 4.8.1 Maintenance Release. (cherry picked from commit 719c484c1c64f943614081aad445b0a27c97a370) (cherry picked from commit 96b4e6eb6d7e00968654a76b759641ca28a4f9e9) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index eee2c6e..3d89b2e 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ clog /wordpress-4.7.4.tar.gz /wordpress-4.7.5.tar.gz /wordpress-4.8.tar.gz +/wordpress-4.8.1.tar.gz diff --git a/sources b/sources index de99ee2..e549066 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.8.tar.gz) = 20249cf13dbcec198df3ec1feb3a7381c194c7c9f832262e40449f90c5e5b5d3f4b63b6021e78c65cc615e059b1b601881d33ce03e1e4618231329b680511467 +SHA512 (wordpress-4.8.1.tar.gz) = dfc166a48cd3542e277a74c6b6f551af7043fee45ac62ca764077e1a73fb487da62e57f1a60f60348d8bfe6ee4199c3ce261c042e20cf652f1b0233bd97d6b5c diff --git a/wordpress.spec b/wordpress.spec index db2d02f..7ea7544 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.8 +Version: 4.8.1 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -275,6 +275,9 @@ find ${RPM_BUILD_ROOT} \( -name \*.dolly -o -name \*.rhbz522897 -o -name \*.orig %changelog +* Thu Aug 3 2017 Remi Collet - 4.8.1-1 +- Update to 4.8.1 Maintenance Release. + * Fri Jun 9 2017 Remi Collet - 4.8-1 - WordPress 4.8 “Evans” From 14312e2fe8cdc00b84eb8c1421d3ca78fd649f62 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 20 Sep 2017 08:38:20 +0200 Subject: [PATCH 5/6] Update to 4.8.2 Security and Maintenance Release (cherry picked from commit 2dc3758a31834db114b003d8cd73b4430c156723) --- .gitignore | 1 + sources | 2 +- wordpress.spec | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3d89b2e..16d5595 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ clog /wordpress-4.7.5.tar.gz /wordpress-4.8.tar.gz /wordpress-4.8.1.tar.gz +/wordpress-4.8.2.tar.gz diff --git a/sources b/sources index e549066..50a2a94 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.8.1.tar.gz) = dfc166a48cd3542e277a74c6b6f551af7043fee45ac62ca764077e1a73fb487da62e57f1a60f60348d8bfe6ee4199c3ce261c042e20cf652f1b0233bd97d6b5c +SHA512 (wordpress-4.8.2.tar.gz) = e6b9dd7a3f9b510b1c85b0f9963d9303c9111f1d6ad471c5be076c5b9cf44ade5d1c761c336f44276ab88f69d6c842e6f33d637c7d76532ab88f12f49c385ca6 diff --git a/wordpress.spec b/wordpress.spec index 7ea7544..bd06706 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.8.1 +Version: 4.8.2 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -275,6 +275,9 @@ find ${RPM_BUILD_ROOT} \( -name \*.dolly -o -name \*.rhbz522897 -o -name \*.orig %changelog +* Wed Sep 20 2017 Remi Collet - 4.8.2-1 +- Update to 4.8.2 Security and Maintenance Release + * Thu Aug 3 2017 Remi Collet - 4.8.1-1 - Update to 4.8.1 Maintenance Release. From ae664d62a75ee112a2d9d4fe1aec78451d552fbb Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 31 Oct 2017 22:38:36 -0700 Subject: [PATCH 6/6] Update to 4.8.3. Security release. Fixes bug #1508255 --- .gitignore | 1 + sources | 2 +- wordpress.spec | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 16d5595..4c06100 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ clog /wordpress-4.8.tar.gz /wordpress-4.8.1.tar.gz /wordpress-4.8.2.tar.gz +/wordpress-4.8.3.tar.gz diff --git a/sources b/sources index 50a2a94..3a7c8e7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wordpress-4.8.2.tar.gz) = e6b9dd7a3f9b510b1c85b0f9963d9303c9111f1d6ad471c5be076c5b9cf44ade5d1c761c336f44276ab88f69d6c842e6f33d637c7d76532ab88f12f49c385ca6 +SHA512 (wordpress-4.8.3.tar.gz) = 696be1c24dec869d896e22b408b17009e8c482545237156f17d4b5f2d726876a17c3cc5c3de632126229747589d74f7b188c06d2a79878efc800bd6db273d709 diff --git a/wordpress.spec b/wordpress.spec index bd06706..978d5f9 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.8.2 +Version: 4.8.3 Group: Applications/Publishing Release: 1%{?dist} License: GPLv2 @@ -275,6 +275,9 @@ find ${RPM_BUILD_ROOT} \( -name \*.dolly -o -name \*.rhbz522897 -o -name \*.orig %changelog +* Tue Oct 31 2017 Kevin Fenzi - 4.8.3-1 +- Update to 4.8.3. Security release. Fixes bug #1508255 + * Wed Sep 20 2017 Remi Collet - 4.8.2-1 - Update to 4.8.2 Security and Maintenance Release