← All changes
|
vendor/team-updraft/lib-central/central/modules/posts.php
+5
-3
3.7.1
→
4.7.0
View file →
| @@ -1093,8 +1093,10 @@ | ||
| 1093 | 1093 | 'template' => get_page_template_slug($post->ID), |
| 1094 | 1094 | 'permalink_template' => get_permalink($post->ID, true), |
| 1095 | 1095 | 'author_name' => get_the_author_meta('display_name', $post->post_author), |
| 1096 | 1096 | 'publish_month_year' => date('F Y', strtotime($post->post_date)), |
| 1097 | + 'publish_month_year_date' => date('d F Y', strtotime($post->post_date)), | |
| 1098 | + 'post_status_object' => get_post_status_object(get_post_status($post->ID)), | |
| 1097 | 1099 | 'published_date' => $published_date, |
| 1098 | 1100 | 'format' => get_post_format($post->ID), |
| 1099 | 1101 | 'post_type_name' => $post_type_obj->name, |
| 1100 | 1102 | 'post_type_viewable' => $is_post_type_viewable, |
| @@ -1395,9 +1397,9 @@ | ||
| 1395 | 1397 | |
| 1396 | 1398 | if (!empty($params['password'])) { |
| 1397 | 1399 | if (!empty($params['sticky'])) { |
| 1398 | 1400 | return $this->_generic_error_response('post_save_failed', array( |
| 1399 | - 'message' => __('A post can not be sticky and have a password.'), | |
| 1401 | + 'message' => __('A post can not be sticky and have a password.'),// phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- The string exists within the WordPress core. | |
| 1400 | 1402 | 'args' => $params |
| 1401 | 1403 | )); |
| 1402 | 1404 | } |
| 1403 | 1405 | |
| @@ -1402,9 +1404,9 @@ | ||
| 1402 | 1404 | } |
| 1403 | 1405 | |
| 1404 | 1406 | if (!isset($params['sticky']) && is_sticky($post->ID)) { |
| 1405 | 1407 | return $this->_generic_error_response('post_save_failed', array( |
| 1406 | - 'message' => __('A sticky post can not be password protected.'), | |
| 1408 | + 'message' => __('A sticky post can not be password protected.'),// phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- The string exists within the WordPress core. | |
| 1407 | 1409 | 'args' => $params |
| 1408 | 1410 | )); |
| 1409 | 1411 | } |
| 1410 | 1412 | } |
| @@ -1411,9 +1413,9 @@ | ||
| 1411 | 1413 | |
| 1412 | 1414 | if (!empty($params['sticky'])) { |
| 1413 | 1415 | if (!isset($params['password']) && post_password_required($post->ID)) { |
| 1414 | 1416 | return $this->_generic_error_response('post_save_failed', array( |
| 1415 | - 'message' => __('A password protected post can not be set to sticky.'), | |
| 1417 | + 'message' => __('A password protected post can not be set to sticky.'),// phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- The string exists within the WordPress core. | |
| 1416 | 1418 | 'args' => $params |
| 1417 | 1419 | )); |
| 1418 | 1420 | } |
| 1419 | 1421 | } |